Memo‎ > ‎

Setup bash prompt

posted Dec 28, 2010, 10:33 AM by Teng-Yok Lee   [ updated Jun 2, 2013, 11:13 PM ]
A sample prompt that am using (added the following line to ~/.bash_profile)

export PS1="\[\e[0;32m\][\u@leeten-ec2 \w] \[\e[0m\]\n$ "

References:
Vivek Gite, How to: Change / Setup bash custom prompt (PS1), June 2, 2007.
Daniel Robbins, Tip: Prompt magic, 01 Sep 2000.
Comments