Full Path in Bash Patrick 12 years ago A useful bash setting that prints out full path and new line for next prompt. PS1='\[`[ $? = 0 ] && X=2 || X=1; tput setaf $X`\]\h\[`tput sgr0`\]:$PWD\n\$ '