Skip to content

Instantly share code, notes, and snippets.

@cszang
Created January 26, 2015 10:49
Show Gist options
  • Save cszang/b5ba12e4f7f68574a596 to your computer and use it in GitHub Desktop.
Save cszang/b5ba12e4f7f68574a596 to your computer and use it in GitHub Desktop.
# set prompt
autoload -U promptinit
promptinit
export PS1="%n@%M(%~)> "
# completion settings
autoload -U compinit
compinit
zstyle ':completion:*:descriptions' format '%U%B%d%b%u'
zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
# record history and make it available for all open shells
export HISTSIZE=2000
export HISTFILE="$HOME/.history"
export SAVEHIST=$HISTSIZE
setopt hist_ignore_all_dups
setopt incappendhistory
setopt sharehistory
setopt extendedhistory
# cd automatically in dir
setopt autocd
# PATH
export PATH=$HOME/bin:/usr/local/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment