Skip to content

Instantly share code, notes, and snippets.

@zmpeg
Created November 22, 2016 16:34
Show Gist options
  • Save zmpeg/e657df374da65dccb09df90b8a0a16a5 to your computer and use it in GitHub Desktop.
Save zmpeg/e657df374da65dccb09df90b8a0a16a5 to your computer and use it in GitHub Desktop.
# Git prompt
source ~/.zsh/git-prompt/zshrc.sh
PROMPT='%B%m%~%b$(git_super_status) %# '
# Jump by word with control
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# Fix History
SAVEHIST=999999999
HISTSIZE=999999999
HISTFILE=~/.history
setopt APPEND_HISTORY # Don't erase history
setopt EXTENDED_HISTORY # Add additional data to history like timestamp
setopt INC_APPEND_HISTORY # Add immediately
setopt HIST_IGNORE_DUPS # Don't record an entry that was just recorded again.
setopt HIST_IGNORE_ALL_DUPS # Delete old recorded entry if new entry is a duplicate.
setopt HIST_FIND_NO_DUPS # Do not display a line previously found.
setopt HIST_SAVE_NO_DUPS # Don't write duplicate entries in the history file.
setopt HIST_IGNORE_SPACE # Don't preserve spaces. You may want to turn it off
setopt NO_HIST_BEEP # Don't beep
setopt SHARE_HISTORY # Share history between session/terminals
setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording entry.
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
# Add NVM
export NVM_DIR="/Users/matt/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# Add RVM
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment