diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2021-10-23 13:54:02 +0200 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2021-10-23 13:54:02 +0200 |
commit | 3bb813427f123aec4ded40d06a3c8684a9d41140 (patch) | |
tree | 536df5b354715fccc65d1cc6bd0bd67de2eaf73c | |
parent | cb0880e23e22f285a7f8525abf4b168e7ed28568 (diff) |
better sourcing
-rw-r--r-- | .zshrc | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -60,8 +60,17 @@ HISTSIZE=999999999 SAVEHIST=999999999 HISTFILE=~/.history -source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +if [[ "$(grep ^ID= /etc/os-release)" == *"arch"* ]]; then + source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +elif [[ "$(grep ^ID= /etc/os-release)" == *"debian"* ]]; then + source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh +elif [[ "$(grep ^ID= /etc/os-release)" == *"ubuntu"* ]]; then + source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh +fi + bindkey '^f' end-of-line autoload -Uz vcs_info |