diff options
author | 2017-04-27 09:20:32 -0400 | |
---|---|---|
committer | 2017-04-27 09:20:32 -0400 | |
commit | 855ca24386a69957e9449ba3d53e549cfeb11c87 (patch) | |
tree | c7fd375f1fc07c4610963aea9707c36741c2f1b7 /zsh/.zshrc | |
parent | 5ee38ac2b3d22d617605185087c74db0f6a40091 (diff) | |
download | configs-855ca24386a69957e9449ba3d53e549cfeb11c87.tar.gz configs-855ca24386a69957e9449ba3d53e549cfeb11c87.tar.xz configs-855ca24386a69957e9449ba3d53e549cfeb11c87.zip |
New setup
This was sitting uncommitted locally for a while, thought it was time to commit
it and push it.
Diffstat (limited to '')
-rw-r--r-- | zsh/.zshrc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..635bffb --- /dev/null +++ b/zsh/.zshrc @@ -0,0 +1,26 @@ +# Bash-like navigation +#export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>' +export WORDCHARS='*?[]~=&;!#$%^(){}<>' + +fpath+=~/.zfunc + +# rehash if last command was pacaur or pacman +# (so that zsh picks up changes in $PATH immediately) +TRAPUSR1() { rehash}; precmd() { [[ $history[$[ HISTCMD -1 ]] == *(pacaur|pacman)* ]] && killall -USR1 zsh } + + + +# +# User configuration sourced by interactive shells +# + +# Source zim +if [[ -s ${ZDOTDIR:-${HOME}}/.zim/init.zsh ]]; then + source ${ZDOTDIR:-${HOME}}/.zim/init.zsh +fi + + +ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red') +#ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red,bold' + +source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh |