When you start a standard OSX Terminal running bash you see that it is uncolored and boring as an old fashioned VAX terminal at university. So I decided to go with a new setting to make the overall terminal experience better, like those you see on various Linux distribution.
My desire was to have:
improved and clear prompt information with user and current directory
colored prompt
colored ls
rapid alias as “ll” to show all files (ls -la)
My machine name is “settedinove” (that is the Italian translation of “Seven of Nine”, the female borg fiction character from “Star Trek: Voyager”) and this is an example terminal before applying the modification to it:
Boring…
So let’s proceed with creating a file “.bash_profile” in the root of your home folder:
You can use a text editor, I prefer to use VI from the command line as follows:
or using nano:
and copy the following content:
Now you have to load your configuration (or exit and open again the Terminal):
or
This is how it appears after the treatment:
You can do “ll” to show the contents of a directory, add any alias command you like in .bash_profile, improving the overall shell experience.
Feel free to share improvements in the comments below.