Created
September 22, 2014 10:24
-
-
Save stenyak/03ed4425fbfa39a28fe7 to your computer and use it in GitHub Desktop.
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
function updatePS1() | |
{ | |
#... | |
local RESET="\[\033[00m\]" | |
local hosttext="\[$(colorize.sh $hostname)\]$(echo $hostname)$RESET" | |
export PS1="foobarbaz@$hosttext :" | |
#... | |
} | |
PROMPT_COMMAND=updatePS1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment