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'
|
RESETC="\\[$(tput sgr0)\\]"
|
||||||
PURPLE='\033[1;35m'
|
PURPLE="\\[$(tput setaf 164)\\]"
|
||||||
RGREEN='\033[1;32m'
|
RGREEN="\\[$(tput setaf 113)\\]"
|
||||||
RRRRED='\033[1;31m'
|
RRRRED="\\[$(tput setaf 161)\\]"
|
||||||
BWHITE='\033[1;37m'
|
BWHITE="\\[$(tput setaf 255)\\]"
|
||||||
|
|
||||||
ewe() {
|
ewe() {
|
||||||
case $? in
|
case $? in
|
||||||
|
|
||||||
0)
|
0)
|
||||||
FACE="${RGREEN}UwU${RESETC} "
|
FACE="${RGREEN}UwU "
|
||||||
;;
|
;;
|
||||||
|
|
||||||
1)
|
1)
|
||||||
FACE="${RRRRED}OwO\"${RESETC}"
|
FACE="${RRRRED}OwO\""
|
||||||
;;
|
;;
|
||||||
|
|
||||||
2)
|
2)
|
||||||
FACE="${RRRRED}?w?${RESETC} "
|
FACE="${RRRRED}?w? "
|
||||||
;;
|
;;
|
||||||
|
|
||||||
126)
|
126)
|
||||||
FACE="${RRRRED}>w<${RESETC} "
|
FACE="${RRRRED}>w< "
|
||||||
;;
|
;;
|
||||||
|
|
||||||
127)
|
127)
|
||||||
FACE="${RRRRED}//w//${RESETC}"
|
FACE="${RRRRED}//w//"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
130)
|
130)
|
||||||
FACE="${RRRRED}XwX${RESETC} "
|
FACE="${RRRRED}XwX "
|
||||||
;;
|
;;
|
||||||
|
|
||||||
255)
|
255)
|
||||||
FACE="${RRRRED}TwT${RESETC} "
|
FACE="${RRRRED}TwT "
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "\n"
|
echo "\n"
|
||||||
echo "╭───╼ $(whoami) ${BWHITE}at${RESETC} $(hostname) ${PURPLE}$(pwd)${RESETC} [$(date +%T)]"
|
echo "╭───╼ $(whoami) ${BWHITE}at${RESETC} $(hostname) ${PURPLE}$(pwd)${RESETC} [$(date +%T)]"
|
||||||
echo "╰───╼ Status: $FACE+> "
|
echo "╰───╼ Status: ${FACE}${RESETC}+> "
|
||||||
}
|
}
|
||||||
|
|
||||||
update_ps1() {
|
update_ps1() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue