dotfiles/.zshrc

46 lines
1 KiB
Bash
Raw Normal View History

2016-11-13 18:38:53 +01:00
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
2015-01-24 16:46:54 +01:00
COMPLETION_WAITING_DOTS="true"
plugins=(vi-mode svn git python zsh-syntax-highlighting history-substring-search)
2013-10-09 08:21:30 +02:00
HISTFILE=~/.histfile
2013-11-30 11:00:26 +01:00
HISTSIZE=10240
SAVEHIST=10240
2013-10-09 08:21:30 +02:00
setopt appendhistory autocd extendedglob nomatch notify
unsetopt beep
2013-10-09 08:29:35 +02:00
autoload -U compinit
compinit
setopt completealiases
zstyle ':completion::complete:*' use-cache 1
# bind UP and DOWN arrow keys
zmodload zsh/terminfo
bindkey "$terminfo[cuu1]" history-substring-search-up
bindkey "$terminfo[cud1]" history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
2016-01-30 13:31:42 +01:00
bindkey "^R" history-incremental-search-backward
prompt_dir() {
prompt_segment blue $PRIMARY_FG ' %1~ '
}
2015-04-27 16:30:58 +02:00
# aliases
2013-10-09 11:19:02 +02:00
if [[ `uname` == 'Darwin' ]]; then
alias vim=/usr/local/Cellar/vim/7.4/bin/vim
fi
2013-12-02 10:49:22 +01:00
if [[ `uname` =~ 'CYGWIN.*' ]]; then
export DISPLAY=:0.0
fi
2016-07-09 10:47:51 +02:00
alias benice="ionice -c3 nice -n20"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh