Fix git clone for zsh plugins. Autonotify

This commit is contained in:
Out Of Ideas 2024-04-04 16:19:41 -05:00
parent 721398a7fd
commit 23120b43ab
1 changed files with 12 additions and 6 deletions

View File

@ -145,6 +145,7 @@ VIS_PATH="$XDG_CONGIG_DIR/vis"
# Dbus
export $(dbus-launch)
###########
# Plugins #
###########
@ -155,27 +156,32 @@ SYNTAX_HIGHLIGHTING_PATH="$PLUGIN_PATH/F-Sy-H/F-Sy-H.plugin.zsh"
AUTOSUGGESTIONS_PATH="$PLUGIN_PATH/zsh-autosuggestions/zsh-autosuggestions.zsh"
HISTORY_SUBSTRING_SEARCH_PATH="$PLUGIN_PATH/zsh-history-substring-search/zsh-history-substring-search.zsh"
Z_PATH="$PLUGIN_PATH/z-zsh/z-zsh.zsh/zsh-z.plugin.zsh"
YOU_SHOULD_USE_PATH="$PLUGIN_PATH/zsh-you-should-use/zsh-you-should-use.plugin.zsh"
YOU_SHOULD_USE_PATH="$PLUGIN_PATH/zsh-you-should-use/you-should-use.plugin.zsh"
AUTO_NOTIFY_PATH="$PLUGIN_PATH/zsh-auto-notify/auto-notify.plugin.zsh"
# Install plugins if they are not already installed
if ! ls $SYNTAX_HIGHLIGHTING_PATH &> /dev/null; then
git clone https://github.com/z-shell/F-Sy-H $SYNTAX_HIGHLIGHTING_PATH
git clone https://github.com/z-shell/F-Sy-H $(dirname SYNTAX_HIGHLIGHTING_PATH)
fi
if ! ls $AUTOSUGGESTIONS_PATH &> /dev/null; then
git clone https://github.com/zsh-users/zsh-autosuggestions $AUTOSUGGESTIONS_PATH
git clone https://github.com/zsh-users/zsh-autosuggestions $(dirname $AUTOSUGGESTIONS_PATH)
fi
if ! ls $HISTORY_SUBSTRING_SEARCH_PATH &> /dev/null; then
git clone https://github.com/zsh-users/zsh-history-substring-search $HISTORY_SUBSTRING_SEARCH_PATH
git clone https://github.com/zsh-users/zsh-history-substring-search $(dirname $HISTORY_SUBSTRING_SEARCH_PATH)
fi
if ! ls $YOU_SHOULD_USE_PATH &> /dev/null; then
git clone https://github.com/MichaelAquilina/zsh-you-should-use $YOU_SHOULD_USE_PATH
git clone https://github.com/MichaelAquilina/zsh-you-should-use $(dirname $YOU_SHOULD_USE_PATH)
fi
if ! ls $Z_PATH &> /dev/null; then
git clone https://github.com/agkozak/zsh-z $Z_PATH
git clone https://github.com/agkozak/zsh-z $(dirname $Z_PATH)
fi
if ! ls $AUTO_NOTIFY_PATH &> /dev/null; then
git clone https://github.com/MichaelAquilina/zsh-auto-notify $(dirname $AUTO_NOTIFY_PATH)
fi
# Syntax Highlighting