zshを使いたいがためにcygwinを導入
どうもzshのWindowsバイナリは開発・配布が停止してしまっているようで
どこにもみあたらない・・。
仕方がないのでcygwinを導入して、cygwin上でzshを使う事にした。
というわけでその導入記録。
まずはsetup.exeを使ってcygwinをインストール。(←省略)
デフォルトのターミナルはDOS窓でかっちょわるいので変更したい・・・。
そこでネットをいろいろあさってみると
ck terminal emulator ver3
http://www.geocities.jp/meir/cygwin_ck/
というのがあるらしい。
これで見た目がグッとよくなった。
(アンチエイリアスフォントも使えるし)
.zshrc はこんな感じ
「もってけ泥棒」とあったので
↓のサイトからありがたく頂く。
ありがとうございます。
autoload -U compinit compinit -u #export LANG=ja_JP.UTF-8 #export LANG=ja_JP.eucJP export LANG=ja_JP.SJIS # forbid C-s stty stop undef # local GREEN=$'%{\e[1;32m%}' local BLUE=$'%{\e[0;34m%}' local DEFAULT=$'%{\e[0;m%}' local RED=$'%{\e[0;31m%}' local CYAN=$'%{\e[0;36m%}' PROMPT=$RED'[$USER@$HOSTNAME] %(!.#.%%) '$DEFAULT RPROMPT=$CYAN'[%~]'$DEFAULT PROMPT2="%_%% " SPROMPT="%r is correct? [n,y,a,e]: " # alias alias ls='ls --color=auto --show-control-chars -F' # long list alias ll='ls -l --color=auto --show-control-chars -F' # long list alias la='ls -A --color=auto --show-control-chars -F' # all but . and .. alias l='ls -CF --color=auto --show-control-chars' # alias -g lG='| grep ' alias -s sln='/cygdrive/c/Program Files/Microsoft Visual Studio 8/Common7/IDE/devenv.exe' # history configuration # HISTFILE=~/.zsh_history HISTSIZE=10000 SAVEHIST=10000 setopt hist_ignore_dups # ignore duplication command history list setopt share_history # share command history data # historical backward/forward search with linehead string binded to ^P/^N # autoload history-search-end zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-forward-end history-search-end bindkey "^R" history-beginning-search-backward-end bindkey "^S" history-beginning-search-forward-end # Emacs key bind bindkey -e # Terminal Title case "${TERM}" in kterm*|xterm) precmd() { echo -ne "\033]0;${USER}@${HOST%%.*}:${PWD}\007" } ;; esac # cd setopt auto_cd setopt auto_pushd setopt correct setopt complete_aliases setopt PROMPT_SUBST # completion setopt print_eight_bit # #zstyle ':completion:*' list-colors 'di=34' 'ln=35' 'so=32' 'ex=31' 'bd=46;34' 'cd=43;34'
.bashrc
zshはどうした!?
alias ls='ls --color=auto --show-control-chars -F' # 日本語のファイル名を表示するために --show-control-charsを付けています。 alias ll='ls -l --color=auto --show-control-chars -F' alias la='ls -A --color=auto --show-control-chars -F' # all but . and .. alias l='ls -CF --color=auto --show-control-chars' . . (略) . . export LS_COLORS="di=00;37;36" # ディレクトリの青がなんだか眩しいので