diff options
-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 |