Mac Terminal: Style Your Command Prompt

If you want to change Mac Terminal's default command prompt to something more useful, I'd suggest this style:

And to get those fancy colors in your Bash prompt, just add

PS1="\h:\[\e[0;32m\]\w\[\e[m\] "

to your ~/.bash_profile file.

Comments

Popular posts from this blog

Tuning ext4 for performance with emphasis on SSD usage

Java 8: Default Interface Implementations, The Diamond Problem, Multiple Inheritance, and Precedence

Tuning ext3 for performance without losing its data integrity potential