irongit

Hygo AI custom shell.

updates on load

huncholanehuncholaneauthored
parent 60e4525commit d7ac42c894ada0f1fd6edaacb349df6d9b433b4aBrowse files

1 file changed, +12 -6

+12-6.bashrc
@@ -1,13 +1,19 @@
1-# Set the prompt
1+CURRENT_DIR=$(pwd)
2+cd ~/.hygo
3+HYGOSHELL_UPDATE=$(git pull)
4+if [[ "$HYGOSHELL_UPDATE" == *"Already"* ]]; then
5+ echo -e "\n\e[38;5;214mHygoShell is up to date.\e[0m\n"
6+else
7+ echo -e "\n\e[38;5;214mHygoShell updating.\e[0m\n"
8+fi
9+cd $CURRENT_DIR
10+
211 if [ -n "$ZSH_VERSION" ]; then
3- echo -e "\n\e[38;5;214mHygoShell is active.\e[0m\n"
4- PROMPT="%F{214}%n@%m:%~"$'\n'"%f$ "
12+ PROMPT="%F{214}%n@%m %~"$'\n'"%f$ "
513 fi
614 if [ -n "$BASH_VERSION" ]; then
7- echo "\[\e[38;5;214m\]HygoShell is active.[\e[0m\]\$ "
8- PS1="\[\e[38;5;214m\]\u@\h:\w\n\[\e[0m\]\$ "
15+ PS1="\[\e[38;5;214m\]\u@\h \w\n\$\[\e[0m\] "
916 fi
10-# Set the prompt
1117
1218 # HELP basic
1319 alias sz="source ~/.zshrc"