Skip to content

Instantly share code, notes, and snippets.

@DrSLDR DrSLDR/bash.bashrc
Last active Aug 29, 2015

Embed
What would you like to do?
PS1 variable
if [[ ${EUID} == 0 ]] ; then
PS1='${debian_chroot:+($debian_chroot)}\[$(tput bold)\]\[$(tput setaf 7)\][\t]\[$(tput setaf 1)\]\h\[$(tput setaf 7)\](\[$(tput setaf 4)\]\W\[$(tput setaf 7)\])\$ \[$(tput sgr0)\]'
else
PS1='${debian_chroot:+($debian_chroot)}\[$(tput bold)\]\[$(tput setaf 7)\][\t]\[$(tput setaf 2)\]\u@\h\[$(tput setaf 7)\](\[$(tput setaf 4)\]\W\[$(tput setaf 7)\])\$ \[$(tput sgr0)\]'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.