windows VISTA上でのcygwin設定の忘れないポイント。
▽cygwinの日本語化
* /etc/profile に以下の項目を付け加えます。
export LANG=ja_JP.SJIS
export TZ=JST-9
export JLESSCHARSET=japanese-sjis
alias ls='ls --show-control-chars --color -F'
thanks to http://matanet.ath.cx/cs/cygwin/
▽SJISの環境設定(/home/seiji)
.bash_profile
export TERM=vt100
export LANG=ja_JP.SJIS
export LESSCHARSET=japanese-sjis
.bashrc
alias ls='ls --show-control-chars --color=auto'
alias ct='cygterm &'
function ie {
echo /cygdrive/c/Program\ Files/Internet\ Explorer/IEXPLORE "$(cygpath -w $PWD)\\$1"
/cygdrive/c/Program\ Files/Internet\ Explorer/IEXPLORE "$(cygpath -w $PWD)\\$1" &
}
上記のie関数を設定しておくことにより、XMLやXMLtableファイルをコマンド上から起動可能になる。
例) ie dat.xt #dat.xtをInternetExploreを利用して表示する。
.inputrc
set convert-meta off
set input-meta on
set output-meta on
.vimrc
set encoding=japan
set fileencodings=sjis
thanks to http://musashi.sourceforge.jp/cygwin/cygwin.html
cygwinを普通にインストールするとviエディタが付与されていないので、
再インストール時に、Editor内のvimの所にある"skip"を展開して、再インストールを開始する。
するとvimパッケージのみインストールされる。
thanks to http://programnet.hp.infoseek.co.jp/coloum/cygwin2.html