Zsh: added distro dependend sourcing of plugins
This commit is contained in:
parent
1341c50d8f
commit
e9fd8f4f15
1 changed files with 8 additions and 2 deletions
|
@ -71,6 +71,12 @@ bindkey -M menuselect 'k' vi-up-line-or-history
|
|||
bindkey -M menuselect 'l' vi-forward-char
|
||||
bindkey -M menuselect 'j' vi-down-line-or-history
|
||||
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
local OS=$(grep -w "ID=..*" < /etc/os-release | sed 's/ID=//')
|
||||
if [ $OS == "artix" ] || [ $OS == "arch" ]; then
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
else
|
||||
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue