Skip to content

Instantly share code, notes, and snippets.

@haru01
Created September 6, 2010 01:08
Show Gist options
  • Save haru01/566499 to your computer and use it in GitHub Desktop.
Save haru01/566499 to your computer and use it in GitHub Desktop.
# use escapse squence
setopt prompt_subst
# prompt
local DEFAULT=$'%{\e[01;m%}'
local PURPLE=$'%{\e[01;35m%}'
local CYAN=$'%{\e[04;36m%}'
if [ $TERM = "dumb" ]; then
PROMPT="> "
else
PROMPT=$PURPLE"$USER@$HOST%(!.#.%%)"$DEFAULT" "
RPROMPT=$CYAN'[%~]'$DEFAULT
fi
# compinit
autoload -U compinit
compinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z} m:{A-Z}={a-z}'
zstyle ':completion:*:(all-|)files' ignored-patterns '(*/)#.svn' '(*/)#.git' '(*/)#.hg'
zstyle ':completion:*:cd:*' ignored-patterns '(*/)#.svn' '(*/)#.git' '(*/)#.hg'
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
compdef _man w3mman
compdef _tex platex
# history
HISTFILE=$HOME/.zsh_history
HISTSIZE=10000
SAVEHIST=1000000
# bindkey
bindkey -e
bindkey '^P' history-beginning-search-backward
bindkey '^N' history-beginning-search-forward
bindkey '^R' history-incremental-search-backward
autoload colors
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
# options
unsetopt no_glob mail_warning
setopt always_to_end
setopt append_history
setopt auto_cd
setopt auto_list
setopt auto_menu
setopt auto_param_keys
setopt auto_param_slash
setopt auto_pushd
setopt auto_remove_slash
setopt complete_in_word
setopt correct
setopt correct_all
setopt extended_glob
setopt extended_history
setopt glob_complete
setopt glob_dots
setopt multios
setopt hist_ignore_dups
setopt hist_ignore_space
setopt ignore_eof
setopt interactive_comments
setopt list_types
setopt long_list_jobsa
setopt magic_equal_subst
setopt share_history
setopt sun_keyboard_hack
setopt pushd_ignore_dups
setopt zle
setopt no_check_jobs
# alias
#alias find='command gfind'
#alias xargs='command gxargs'
#alias ls='command gls -hF --color=always'
alias ls='ls -hF --color=always'
#alias ls='command gls -hF'
alias ll='ls -l'
alias lf='ls -f'
alias la='ls -al'
#alias vim='/usr/bin/vim -u /usr/share/vim/vimrc'
#alias vim=/Applications/Vim.app/Contents/MacOS/Vim
alias vi=vim
#alias gvim="vim -g"
alias view=vim -R
alias less='less -r'
#alias time='/opt/local/bin/gtime'
alias sport='sudo env RSYNC_PROXY=inetgw2:8080 http_proxy=inetgw2:8080 ftp_proxy=inetgw2:8080 port'
alias irb='irb --simple-prompt'
#alias rm='rmtrash'
alias rails='rails _1.2.6_'
export LANG=ja_JP.UTF-8
export SVN_EDITOR=vi
# load specific settings for each computer
if [ -e ~/.zshlocal ]; then
source ~/.zshlocal
fi
alias hglog='hg glog --style compact'
alias mvn_clean_install_test_skip_true='mvn clean install -Dmaven.test.skip=true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment