I’m rather fond of my bash prompt:
export PS1="\n`tput setaf 6`\w/ `tput setaf 7`(\u@\h)`tput sgr0`\n\$ "
it prints my full path, then shows me who I am and on which (short) domain.. then on the next line.. a simple indicator as to if i’m root or not .. then the cursor..
Setting this permanently
- Change to your home directory
- Make / Edit your
.bash_profilefile by typing
- paste the export line into this text file and save it.
- All done!
UPDATE: I have now updated to Z-shell, which has fantastic git integration and an entirely new way to configure the prompt!