1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- # local zsh config
- source ~/.zshrc.local
- # History
- HISTFILE=~/.histfile
- HISTSIZE=10000
- SAVEHIST=10000
- # Instantly write history
- setopt -o sharehistory
- # Ignore duplicates in history
- setopt HIST_IGNORE_DUPS
- # Delete old recorded entry if new entry is a duplicate.
- setopt HIST_IGNORE_ALL_DUPS
- setopt appendhistory autocd extendedglob nomatch
- bindkey -e
- zstyle :compinstall filename '/home/josh/.zshrc'
- autoload -Uz compinit
- compinit
- # List of word delimeters
- WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
- # ls pleasantness
- alias 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 editor
- export VISUAL=vim
- # Home and End keysjump the the beginning/end of the command
- bindkey "^[OH" beginning-of-line
- bindkey "^[OF" end-of-line
- # Ctrl-Left and Ctrl-Right keys move between words
- bindkey ";5C" forward-word
- # bindkey "^[[C" forward-word
- bindkey ";5D" backward-word
- # bindkey "^[[D" backward-word
- # alias for vim muscle memory when quitting
- alias :q='exit'
- # eval used by thefuck
- if hash fuck 2>/dev/null; then
- eval $(thefuck --alias)
- fi
- # timestamp alias for dates
- alias ts='date +%y-%m-%d'
- # default to terminal emacs
- alias emacs='emacs -nw'
- # grml
- if [ ! $ZSH_CUSTOM ]
- then
- # enable syntax highlighting
- source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
- # enable C-s for forward search
- stty -ixon
- fi
|