.zshrc をさらしてみよう。

このエントリーを含むはてなブックマークはてなブックマーク - .zshrc をさらしてみよう。 Share on Tumblr Googleブックマークに追加 Bookmark this on Delicious このエントリをつぶやく

最近、bashとzshを両方使ってどっちがいいかお試し期間中。

そこで、色々調べて書いたzshの設定ファイル.zshrcをさらしてみよう。

# Lines configured by zsh-newuser-install
HISTFILE=~/.zsh_histfile
HISTSIZE=10000000
SAVEHIST=10000000

setopt hist_ignore_all_dups share_history inc_append_history extended_history hist_verify appendhistory autocd beep extendedglob nomatch notify
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/jasper/.zshrc'

# プロンプトのカラー表示を有効
autoload -U colors
colors

autoload -Uz compinit
compinit

# 補完侯補をEmacsのキーバインドで動き回る
zstyle ':completion:*:default' menu select=1

# 補完の時に大文字小文字を区別しない
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias screen='screen -U -D -RR'

PROMPT="%m:%n%% "

setopt prompt_subst
PROMPT='%{^[[$[32+$RANDOM % 5]m%}%U%B$HOST'" [`whoami`]%b%%%{^[[m%}%u "
RPROMPT='%{^[[33m%}[%~]%{^[[m%}'
PROMPT2="%B%_>%b "                          # forやwhile/複数行入力時などに表示されるプロンプト
SPROMPT="%r is correct? [n,y,a,e]: "        # 入力ミスを確認する場合に表示されるプロンプト

setopt transient_rprompt                    # 右プロンプトに入力がきたら消す

function ssh_screen(){
 eval server=?${$#}
 screen -t $server ssh "$@"
}
if [ $TERM = xscreen ]; then
  alias ssh=ssh_screen
fi

export PATH=/var/lib/gems/1.8/bin:$PATH
export CVS_RSH=ssh

## keychain
unset SSH_AUTH_SOCK
keychain ~/.ssh/id_rsa ~/.ssh/id_dsa --host nobjas-main
if [ -f ~/.keychain/nobjas-main-sh ]; then
    source ~/.keychain/nobjas-main-sh
fi

# End of lines added by compinstall

なんか良さそうなのあったら教えてください。

Posted 月曜日, 2月 8th, 2010 under sh.

Tags: ,

blog comments powered by Disqus