Skip to content

Instantly share code, notes, and snippets.

@smallfield
Created December 8, 2011 01:44
Show Gist options
  • Save smallfield/1445717 to your computer and use it in GitHub Desktop.
Save smallfield/1445717 to your computer and use it in GitHub Desktop.
# misc
export LANG=ja_JP.UTF-8
alias ls='ls -Gl '
export PATH=/opt/local/bin:/opt/local/sbin/:$PATH
export MANPATH=/opt/local/man:$MANPATH
autoload -U compinit
compinit
HISTFILE="$HOME/.zshhistory"
HISTSIZE=100000
SAVEHIST=100000
setopt extended_history
function history-all { history -E 1 }
setopt hist_ignore_dups # ignore duplication command history list
setopt share_history # share command history data
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
autoload colors
colors
PROMPT="%(?!%{${fg[green]}%}!%{${fg[red]}%})[%m:%1~]%(?!(・∀ ・! ('д `))%(!.#.$) %{${reset_color}%}"
PROMPT2="%{${fg[green]}%}%_>%{${reset_color}%}"
SPROMPT="%{${fg[red]}%}correct: %R -> %r [nyae]? %{${reset_color}%}"
RPROMPT="%{${fg[green]}%}[%~]%{${reset_color}%}"
export GISTY_DIR="$HOME/dev/gists"
autoload zmv
alias zmv='noglob zmv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment