From 3bb813427f123aec4ded40d06a3c8684a9d41140 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sat, 23 Oct 2021 13:54:02 +0200 Subject: better sourcing --- .zshrc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index d03ecd7..4fea4a3 100644 --- a/.zshrc +++ b/.zshrc @@ -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 -- cgit v1.2.3