From b73f40f49cd949a64fee165a27f2c0bf822ddbc9 Mon Sep 17 00:00:00 2001 From: Joachim Date: Sun, 20 Apr 2025 15:07:05 +0200 Subject: [PATCH] =?UTF-8?q?T=C3=A9l=C3=A9verser=20les=20fichiers=20vers=20?= =?UTF-8?q?"/"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bashrc | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 bashrc 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'