summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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