Skip to content

Instantly share code, notes, and snippets.

@DarkCat09
Last active October 11, 2022 07:56
Show Gist options
  • Save DarkCat09/29e4628664dc53666f0b6242395aeab8 to your computer and use it in GitHub Desktop.
Save DarkCat09/29e4628664dc53666f0b6242395aeab8 to your computer and use it in GitHub Desktop.
My beautiful and comfortable .bashrc
# Full LiSt
alias fls='ls -alhqQ --color=auto'
PS1='\e[0;36m╭──\e[0m[ \e[1;92m\u@\h\e[0m ]\e[0;36m─\e[0m[ \e[1;34m\W\e[0m ]\e[0;36m─\e[0m[ \e[1;33m`hostname -I`\e[0m ]$(ERR="$?"; if [[ "$ERR" != "0" ]]; then printf "\x1b[0;36m─\x1b[0m(%.*s)" $ERR $ERR; fi)\n\e[0;36m╰─➤\e[0m'
PS1='[ \e[1;92m\u@\h\e[0m ]\e[0;\e[0m[ \e[1;34m\W\e[0m ] [ \e[1;33m$(ERR="$?"; if [[ "$ERR" != "0" ]]; then printf "(%.*s)" $ERR $ERR; fi)\e[0m ]\n\e[0;36m>\e[0m'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment