.zshrc (1300B)
1 # 2 # Path to your oh-my-zsh configuration. 3 #export ZSH=$HOME/.oh-my-zsh 4 5 # Set to the name theme to load. 6 # Look in ~/.oh-my-zsh/themes/ 7 #export ZSH_THEME="jb55" 8 9 #export DISABLE_AUTO_UPDATE="true" 10 #source $ZSH/oh-my-zsh.sh 11 12 # vi 13 bindkey -v 14 15 setopt HIST_IGNORE_SPACE 16 setopt AUTO_PUSHD 17 setopt PUSHD_MINUS 18 setopt CDABLE_VARS 19 zstyle ':completion:*:directory-stack' list-colors '=(#b) #([0-9]#)*( *)==95=38;5;12' 20 21 # short ESC delay 22 export KEYTIMEOUT=1 23 24 bindkey "^R" history-incremental-search-backward 25 26 # history settings 27 export HISTSIZE=50000 28 export SAVEHIST=$HISTSIZE 29 setopt hist_ignore_all_dups 30 31 # fix ssh agent forwarding in screen 32 FIXSSH=$HOME/bin/fixssh 33 if [[ $TERM == screen* ]] && [[ -f $FIXSSH ]]; then 34 source $FIXSSH 35 fi 36 37 source "$HOME/bin/z.sh" 38 39 ALIASES="$HOME/.bash_aliases" 40 [ -e "$ALIASES" ] && source "$ALIASES" 41 42 runthefuzzyo_hist () { f h } 43 runthefuzzyo () { f "$@" } 44 zle -N runthefuzzyo 45 zle -N runthefuzzyo_hist 46 bindkey "^F" runthefuzzyo 47 bindkey "^H" runthefuzzyo_hist 48 49 DIRCOLORS="$HOME/.dircolors" 50 [ -e "$DIRCOLORS" ] && eval "$(dircolors -b "$DIRCOLORS")" 51 52 [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh 53 54 [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' 55 56 # undistract-me is great 57 [ -e $HOME/dotfiles/zsh/undistract-me.zsh ] && . $HOME/dotfiles/zsh/undistract-me.zsh 58 59 eval "$(direnv hook zsh)"