irongit

Hygo AI custom shell.

HygoShell/setup.sh
16 lines406 BBourne Again Shell (bash)
1CURRENT_DIR=$(pwd)
2cd ~/.hygo
3HYGOSHELL_UPDATE=$(git pull)
4if [[ "$HYGOSHELL_UPDATE" == *"Already"* ]]; then
5 echo -e "\n\e[38;5;214mHygoShell is up to date.\e[0m\n"
6else
7 echo -e "\n\e[38;5;214mHygoShell updating.\e[0m\n"
8fi
9cd $CURRENT_DIR
10
11if [ -n "$ZSH_VERSION" ]; then
12 PROMPT="%F{214}%n@%m %~"$'\n'"%f$ "
13fi
14if [ -n "$BASH_VERSION" ]; then
15 PS1="\[\e[38;5;214m\]\u@\h \w\n\$\[\e[0m\] "
16fi