# # /etc/zshrc # # first source bash's /etc/profile to get everything # usable (esp. PATH) from there source /etc/profile # then set a prompt usable by zsh PROMPT=$'[%~]\n%m$ ' # history HISTFILE=~/.zsh_history HISTSIZE=500 SAVEHIST=500 # key bindings bindkey "^[[2~" yank bindkey "^[[3~" delete-char bindkey "^[[5~" up-line-or-history ## PageUp bindkey "^[[6~" down-line-or-history ## PageDown bindkey "^[[H" beginning-of-line bindkey "^[[F" end-of-line bindkey "^[e" expand-cmd-path ## C-e for expanding path of typed command bindkey "^[[A" up-line-or-search ## up arrow for back-history-search bindkey "^[[B" down-line-or-search ## down arrow for fwd-history-search