Created
August 14, 2010 14:06
-
-
Save cou929/524326 to your computer and use it in GitHub Desktop.
.zshrc
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
## zsh confs | |
## via http://bloghackers.net/~naoya/webdb40/ | |
# auto complete | |
autoload -U compinit | |
compinit | |
# command history | |
HISTFILE=$HOME/.zsh-history | |
HISTSIZE=10000000 | |
SAVEHIST=10000000 | |
setopt hist_ignore_dups | |
setopt share_history | |
setopt auto_cd # cd by dir name | |
setopt autopushd # auto pushd | |
# setopt auto_pushd | |
setopt correct # command correction | |
setopt list_packed # pack list candidates | |
setopt nobeep # disable beep | |
setopt nolistbeep # disable beep | |
setopt noautoremoveslash # disable '/' auto remove | |
setopt complete_aliases # aliased ls needs if file/dir completions work | |
limit coredumpsize 102400 | |
unsetopt promptcr | |
setopt prompt_subst | |
setopt long_list_jobs | |
setopt list_types | |
setopt auto_resume | |
setopt auto_list | |
setopt pushd_ignore_dups | |
setopt extended_glob | |
setopt auto_menu | |
setopt extended_history | |
setopt equals | |
setopt magic_equal_subst | |
setopt hist_verify | |
setopt numeric_glob_sort | |
setopt print_eight_bit | |
zstyle ':completion:*:default' menu select=1 | |
#zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
#zstyle ':completion:*:default' list-colors $LSCOLORS | |
zstyle ':completion:*' list-colors 'di=36' 'ln=35' 'so=32' 'ex=31' 'bd=46;34' 'cd=43;34' | |
setopt auto_param_keys | |
setopt auto_param_slash | |
# prompt | |
PROMPT="%m:%n%% " | |
RPROMPT="[%/]" | |
# emacs-like keybind | |
bindkey -e | |
# keybind for history search | |
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 "^P" history-beginning-search-backward-end | |
bindkey "^N" history-beginning-search-forward-end | |
# for terminal color | |
export LSCOLORS=gxfxcxdxbxegedabagacad | |
alias ls="ls -G -w -F" | |
## alias | |
alias cemacs='open -a Emacs' | |
alias firefox='open -a Firefox' | |
alias safari='open -a Safari' | |
alias preview='open -a Preview' | |
alias acroread='open -a /Applications/Adobe\ Reader\ 9/Adobe\ Reader.app' | |
alias textedit='open -a TextEdit' | |
alias la="ls -a" | |
alias ll="ls -l" | |
alias du="du -h" | |
alias df="df -h" | |
alias gp="git push origin master" | |
# you may write feature experiments or machine specific settings to .zshrc.mine | |
[ -f ~/.zshrc.mine ] && source ~/.zshrc.mine | |
export PATH=$PATH:/opt/local/bin:/usr/local/bin:/usr/local/texlive/2008/bin/universal-darwin:/Users/kosei/projects/utils:/opt/local/lib | |
# access git over proxy | |
export GIT_PROXY_COMMAND=/Users/kosei/.ssh/proxy_cmd_for_github | |
# add my libraries to gcc include path | |
export CPATH=/Users/kosei/projects/utils | |
# add opt dirs to loadpath | |
export LIBRARY_PATH=$LIBRARY_PATH:/opt/local/lib | |
export CPATH=$CPATH:/opt/local/include | |
# pythonpath | |
export PYTHONPATH=/opt/local/lib/python2.5/site-packages | |
# ros | |
# source ~/ros/setup.sh | |
# euslisp | |
export EUSDIR=/usr/local/eus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment