Daily Archives: January 27, 2012

GNU Bash and Environment Variables in the PS1

By | January 27, 2012

Update – Sorry, while the patch below works, it’s NOT needed to get that functionality!! GNU bash can do that without modifications. I don’t know why I missed that before:-( Simply add a ${VAR} into the single quotes when you define the PS1! $ PS1=’\u@${FOO}\$ ‘ marcow@YY$ FOO=XX marcow@XX$ Sorry for the confusion — Marco… Read More »