Last active
May 13, 2019 04:51
-
-
Save djnugent/e3c8c656b16efb1b641244c3c8b39d99 to your computer and use it in GitHub Desktop.
PS1 .bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case $HOSTNAME in | |
(dbox) prompt_clr=71;; | |
(docker) prompt_clr=110;; | |
(*) prompt_clr=183;; | |
esac | |
if [ "$color_prompt" = yes ]; then | |
PS1="\[\033[38;5;${prompt_clr}m\]\[\033[48;5;238m\] \u \[$(tput sgr0)\]\[\033[38;5;255m\]\[\033[48;5;${prompt_clr}m\] \W \[$(tput sgr0)\] " | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment