| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 | # local zsh configsource ~/.zshrc.local# load antigen if it existsif [ -e ~/.antigen.zsh ]then    source ~/.antigen.zsh    # Load oh-my-zsh's library.    antigen use oh-my-zsh    # Bundles from the default repo (robbyrussell's oh-my-zsh).    antigen bundle git    antigen bundle heroku    antigen bundle pip    antigen bundle lein    antigen bundle command-not-found    # Syntax highlighting bundle.    antigen bundle zsh-users/zsh-syntax-highlighting    # Load the theme.    antigen theme agnoster    # Tell antigen that you're done.    antigen applyfi# HistoryHISTFILE=~/.histfileHISTSIZE=10000SAVEHIST=10000# Instantly write historysetopt -o sharehistory# Ignore duplicates in historysetopt HIST_IGNORE_DUPS# Delete old recorded entry if new entry is a duplicate.setopt HIST_IGNORE_ALL_DUPS setopt appendhistory autocd extendedglob nomatchbindkey -ezstyle :compinstall filename '/home/josh/.zshrc'autoload -Uz compinitcompinit -u# List of word delimetersWORDCHARS='*?_-.[]~=&;!#$%^(){}<>'# ls pleasantnessalias l='\ls --color=auto'alias ls='ls --color=auto'alias la='ls -a --color=auto'alias lsa='ls -a --color=auto'alias lls='ls -lh --color=auto'alias ll='ls -lh --color=auto'# Use vim as the default text editorexport VISUAL=vim# Ctrl-Left and Ctrl-Right keys move between wordsbindkey ";5C" forward-word# bindkey "^[[C" forward-wordbindkey ";5D" backward-word# bindkey "^[[D" backward-word# alias for vim muscle memory when quittingalias :q='exit'# eval used by thefuckif hash fuck 2>/dev/null; then    eval $(thefuck --alias)fi# timestamp alias for datesalias ts='date +%y-%m-%d'# alias for getting latest file in a folderalias latest='ls -t | head -n 1'# vi bindingsbindkey -vexport KEYTIMEOUT=1bindkey '^P' up-historybindkey '^N' down-historybindkey '^?' backward-delete-charbindkey '^h' backward-delete-charbindkey '^w' backward-kill-wordbindkey '^r' history-incremental-search-backwardfunction zle-line-init zle-keymap-select {    VIM_PROMPT="%{$fg_bold[yellow]%} [% NORMAL]% %{$reset_color%}"    RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1"    zle reset-prompt}function zle-line-finish {    VIM_PROMPT=""    RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1"    zle reset-prompt}RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1"zle -N zle-line-initzle -N zle-keymap-select# Home and End keys jump the the beginning/end of the commandbindkey "^[OH" beginning-of-linebindkey "^[[H" beginning-of-linebindkey "^[OF" end-of-linebindkey "^[[F" end-of-line# Enable forward searchbindkey "^s" history-incremental-search-forward
 |