635bffb2d12b1555104074bb851218e51786435d
[~bandali/configs] / zsh / .zshrc
1 # Bash-like navigation
2 #export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
3 export WORDCHARS='*?[]~=&;!#$%^(){}<>'
4
5 fpath+=~/.zfunc
6
7 # rehash if last command was pacaur or pacman
8 # (so that zsh picks up changes in $PATH immediately)
9 TRAPUSR1() { rehash}; precmd() { [[ $history[$[ HISTCMD -1 ]] == *(pacaur|pacman)* ]] && killall -USR1 zsh }
10
11
12
13 #
14 # User configuration sourced by interactive shells
15 #
16
17 # Source zim
18 if [[ -s ${ZDOTDIR:-${HOME}}/.zim/init.zsh ]]; then
19 source ${ZDOTDIR:-${HOME}}/.zim/init.zsh
20 fi
21
22
23 ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red')
24 #ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red,bold'
25
26 source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh