Skip to content

Commit

Permalink
add: colours
Browse files Browse the repository at this point in the history
  • Loading branch information
Pheon-Dev committed Nov 14, 2022
1 parent 3b7c05c commit 92d44f9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions zap.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,24 @@ _zap_update() {
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse "$UPSTREAM")
BASE=$(git merge-base @ "$UPSTREAM")

if [ $LOCAL = $REMOTE ]; then
echo -e "... up to date"
state=$(echo -e " ... up to date")
echo -e "\e[32m${state}\e[0m"
elif [ $LOCAL = $BASE ]; then
echo -e "... new changes found, update."
state=$(echo -e " ... new changes found, update. \n")
echo -e "\e[31m${state}\e[0m"
fi
cd "$ZAP_PLUGIN_DIR"
}
plugins=$(ls "$HOME/.local/share/zap/plugins" | awk 'BEGIN { FS = "\n" } { print " " int((NR)) echo " 🔌 " $1 }')
pwd=$(pwd)
cd "$ZAP_DIR"
echo " 0 ⚡ Zap" | grep -E "Zap"
echo " 0 ⚡ Zap"
_changes
for plug in *; do
cd $plug
echo -n $plugins | grep "$plug$"
show=$(echo -n $plugins | grep "$plug$")
echo -e "$show"
_changes
done
echo -n "🔌 Plugin Number | (a) All Plugins | (0) ⚡ Zap Itself: "
Expand Down

0 comments on commit 92d44f9

Please sign in to comment.