Actualiser bashrc
This commit is contained in:
parent
b34c079634
commit
8d9b25adc4
1 changed files with 13 additions and 13 deletions
26
bashrc
26
bashrc
|
@ -1,44 +1,44 @@
|
|||
RESETC='\033[0m'
|
||||
PURPLE='\033[1;35m'
|
||||
RGREEN='\033[1;32m'
|
||||
RRRRED='\033[1;31m'
|
||||
BWHITE='\033[1;37m'
|
||||
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${RESETC} "
|
||||
FACE="${RGREEN}UwU "
|
||||
;;
|
||||
|
||||
1)
|
||||
FACE="${RRRRED}OwO\"${RESETC}"
|
||||
FACE="${RRRRED}OwO\""
|
||||
;;
|
||||
|
||||
2)
|
||||
FACE="${RRRRED}?w?${RESETC} "
|
||||
FACE="${RRRRED}?w? "
|
||||
;;
|
||||
|
||||
126)
|
||||
FACE="${RRRRED}>w<${RESETC} "
|
||||
FACE="${RRRRED}>w< "
|
||||
;;
|
||||
|
||||
127)
|
||||
FACE="${RRRRED}//w//${RESETC}"
|
||||
FACE="${RRRRED}//w//"
|
||||
;;
|
||||
|
||||
130)
|
||||
FACE="${RRRRED}XwX${RESETC} "
|
||||
FACE="${RRRRED}XwX "
|
||||
;;
|
||||
|
||||
255)
|
||||
FACE="${RRRRED}TwT${RESETC} "
|
||||
FACE="${RRRRED}TwT "
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "\n"
|
||||
echo "╭───╼ $(whoami) ${BWHITE}at${RESETC} $(hostname) ${PURPLE}$(pwd)${RESETC} [$(date +%T)]"
|
||||
echo "╰───╼ Status: $FACE+> "
|
||||
echo "╰───╼ Status: ${FACE}${RESETC}+> "
|
||||
}
|
||||
|
||||
update_ps1() {
|
||||
|
|
Loading…
Add table
Reference in a new issue