From ab77e19b5cf83a8d190e866621c22ff485154dda Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 20 Aug 2012 19:53:20 +0900 Subject: [PATCH] add env TERM_ORIG, which save TERM whose val isnt screen* --- bashrc | 1 + vimrc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index b7fcf52..bd17951 100755 --- a/bashrc +++ b/bashrc @@ -50,6 +50,7 @@ export LC_MESSAGES=C export VISUAL="$EDITOR" export GIT_PAGER="$PAGER" export GIT_EDITOR="$EDITOR" +echo "$TERM" | grep '^screen' >/dev/null 2>&1 || export TERM_ORIG=$TERM test -z "$TMP" && export TMP=/tmp/${USER}-tmp mkdir -p "$TMP" diff --git a/vimrc b/vimrc index a4cb26f..593ea12 100644 --- a/vimrc +++ b/vimrc @@ -26,7 +26,7 @@ set mouse=h " do not use mouse set clipboard+=unnamed " use x clipboard, seems not to work set browsedir=buffer " default dir for Explorer -" lang +" encoding set encoding=utf-8 set fileencodings=utf-8,shift-jis,euc-jp,latin1