Skip to content

Instantly share code, notes, and snippets.

@hatak
Created June 15, 2012 12:17
Show Gist options
  • Save hatak/2936183 to your computer and use it in GitHub Desktop.
Save hatak/2936183 to your computer and use it in GitHub Desktop.
.zshrc sample 2012/06/15
### .zshrc
### for mac + macports
### ver. 2012/06/15
### common settings
# export
export LANG=ja_JP.UTF-8
export PATH=$HOME/bin:/opt/local/bin:$PATH
# autoload
autoload colors; colors
# setopt
setopt correct # be suggested correct command if missing
setopt complete_aliases # expand the alias before interpretation of the interpolation operation
setopt hist_ignore_dups # ignore duplication command history list
setopt share_history # share command history data
setopt prompt_subst # expand the variables in the prompt
# prompt
PROMPT='%F{green}[${USER}@${HOST%%.*}]%f%(!.#.$) '
RPROMPT='%F{cyan}[%39<...<%~]%f'
# command history
HISTFILE=${HOME}/.zsh_history
HISTSIZE=1000 # row count of on memory
SAVEHIST=10000 # row count of saved to file
# alias
alias ls="ls -G -w" # color settings for mac/darwin
alias l='ls -lA'
alias mv='mv -i'
alias cp='cp -i'
alias rm='rm -i'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment