Created
July 20, 2010 16:50
-
-
Save vvakame/483211 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autodetach on | |
bell_msg "^G" | |
defkanji utf-8 | |
defencoding utf-8 | |
encoding utf-8 utf-8 | |
defscrollback 10000 | |
escape ^Jj | |
startup_message off | |
vbell off | |
caption always "%{= wb} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wk} [%l] %{=b wb}%y/%m/%d(%D) %{=b wm}%c" | |
bind n screen | |
bind h prev | |
bind j next | |
bind l windowlist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -U compinit | |
compinit | |
export LANG=ja_JP.UTF-8 | |
export PATH=/opt/local/bin:/opt/local/sbin/:~/work/bin:~/work/bin/sbt:~/work/android-sdk-mac_86/tools:$PATH | |
export MANPATH=/opt/local/man:$MANPATH | |
export SCALA_HOME=/opt/local/share/scala | |
export ANDROID_SDK_ROOT=~/work/android-sdk-mac_86 | |
export ANDROID_SDK_HOME=$ANDROID_SDK_ROOT | |
HISTFILE=~/.zsh_history | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
setopt hist_ignore_all_dups | |
setopt hist_ignore_dups # ignore duplication command history list | |
setopt hist_save_nodups | |
setopt share_history # share command history data | |
# setopt correct | |
setopt append_history | |
setopt inc_append_history | |
setopt hist_no_store | |
setopt hist_reduce_blanks | |
setopt no_beep | |
autoload colors | |
colors | |
PROMPT="%{${fg[blue]}%}[%n@%m] %(!.#.$) %{${reset_color}%}" | |
PROMPT2="%{${fg[blue]}%}%_> %{${reset_color}%}" | |
SPROMPT="%{${fg[red]}%}correct: %R -> %r [nyae]? %{${reset_color}%}" | |
RPROMPT="%{${fg[blue]}%}[%~]%{${reset_color}%}" | |
# alias emacs="/Applications/Emacs.app/Contents/MacOS/Emacs" | |
alias ls="ls -G" | |
alias la="ls -laGF" | |
set_rprompt() { | |
local user_color | |
if [ `whoami` = root ]; then | |
user_color=red | |
elif [ `hostname` = otto.local ]; then | |
user_color=blue | |
elif [ `hostname` = liesa.local ]; then | |
user_color=magenta | |
fi | |
RPROMPT="%{${fg[$user_color]}%}[%~]%{${reset_color}%}" | |
} | |
set_rprompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment