summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2021-10-23 13:54:02 +0200
committerTom Barrett <tom@tombarrett.xyz>2021-10-23 13:54:02 +0200
commit3bb813427f123aec4ded40d06a3c8684a9d41140 (patch)
tree536df5b354715fccc65d1cc6bd0bd67de2eaf73c /.zshrc
parentcb0880e23e22f285a7f8525abf4b168e7ed28568 (diff)
better sourcing
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc13
1 files changed, 11 insertions, 2 deletions
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