51 lines
777 B
Bash
51 lines
777 B
Bash
RESETC="\\[$(tput sgr0)\\]"
|
|
PURPLE="\\[$(tput setaf 164)\\]"
|
|
RGREEN="\\[$(tput setaf 113)\\]"
|
|
RRRRED="\\[$(tput setaf 161)\\]"
|
|
BWHITE="\\[$(tput setaf 255)\\]"
|
|
|
|
ewe() {
|
|
case $? in
|
|
|
|
0)
|
|
FACE="${RGREEN}UwU "
|
|
;;
|
|
|
|
1)
|
|
FACE="${RRRRED}OwO\""
|
|
;;
|
|
|
|
2)
|
|
FACE="${RRRRED}?w? "
|
|
;;
|
|
|
|
126)
|
|
FACE="${RRRRED}>w< "
|
|
;;
|
|
|
|
127)
|
|
FACE="${RRRRED}//w//"
|
|
;;
|
|
|
|
130)
|
|
FACE="${RRRRED}XwX "
|
|
;;
|
|
|
|
255)
|
|
FACE="${RRRRED}TwT "
|
|
;;
|
|
esac
|
|
|
|
echo "\n"
|
|
echo "╭───╼ $(whoami) ${BWHITE}at${RESETC} $(hostname) ${PURPLE}$(pwd)${RESETC} [$(date +%T)]"
|
|
echo "╰───╼ Status: ${FACE}${RESETC}+> "
|
|
}
|
|
|
|
update_ps1() {
|
|
PS1=$(ewe)
|
|
}
|
|
|
|
PROMPT_COMMAND=update_ps1
|
|
|
|
alias py="python"
|
|
alias neko='echo'
|