Linux Promt to display your current path
18 Jan 2012Setting your prompt to display your current path.
Add following line to your bashrc script. It will display your working directory before the prompt.
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "