From eadd69b0c6bffe8037a0448f10e9f8fcfa18620d Mon Sep 17 00:00:00 2001 From: pfych Date: Wed, 19 Feb 2025 13:24:24 +1100 Subject: [PATCH] Submoduled zsh plugins are OS independant --- .zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index e8aebc0..5b730e7 100644 --- a/.zshrc +++ b/.zshrc @@ -13,7 +13,6 @@ if [[ $(uname) == "Darwin" ]]; then source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh - source ~/.config/zsh/plugins/zsh-git-prompt/zshrc.sh else export PATH="${PATH}:${HOME}/.local/bin:/usr/local/sbin:${HOME}/.local/share/gem/ruby/2.0.0/bin:/usr/local/bin" @@ -21,10 +20,14 @@ else source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh fi +# Config export CONFIGDIR="${HOME}/.config" export XDG_CONFIG_HOME=$CONFIGDIR export EDITOR=nvim +# Plugins +source "$CONFIGDIR/zsh/plugins/zsh-git-prompt/zshrc.sh" + # Use NVIM alias vim=nvim