diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..f78a3f6 --- /dev/null +++ b/bashrc @@ -0,0 +1,51 @@ +RESETC='\033[0m' +PURPLE='\033[1;35m' +RGREEN='\033[1;32m' +RRRRED='\033[1;31m' +BWHITE='\033[1;37m' + +ewe() { + case $? in + + 0) + FACE="${RGREEN}UwU${RESETC} " + ;; + + 1) + FACE="${RRRRED}OwO\"${RESETC}" + ;; + + 2) + FACE="${RRRRED}?w?${RESETC} " + ;; + + 126) + FACE="${RRRRED}>w<${RESETC} " + ;; + + 127) + FACE="${RRRRED}//w//${RESETC}" + ;; + + 130) + FACE="${RRRRED}XwX${RESETC} " + ;; + + 255) + FACE="${RRRRED}TwT${RESETC} " + ;; + esac + + echo "\n" + echo "╭───╼ $(whoami) ${BWHITE}at${RESETC} $(hostname) ${PURPLE}$(pwd)${RESETC} [$(date +%T)]" + echo "╰───╼ Status: $FACE+> " +} + +update_ps1() { + PS1=$(ewe) +} + +PROMPT_COMMAND=update_ps1 + +alias py="python" +alias neko='echo'