Saving & Sharing my terminal settings.
- TotalTerminal - for cool Quake like terminal
- Solarized theme - Very nice & subtle theme.
My .bash_profile file contains the following:
export PS1="\[\e[0;36m\]\n\h: \[\e[0;33m\]\w\n\[\e[0m\]→ "
Where \n
creates a line break; \h
gets the hostname; \w
gets the current working directory; and the arrow is just cool!
The other parts are colors: \[\e[0;36m\]
is cyan; \[\e[0;33m\]
is yellow; and \[\e[0m\]
is back to normal, in the case of Solarized, grey. And so it outputs the following (though with some color):
UNKN0WN: ~
→
The initial line break is nice to create a little padding between the last entry/output and your new entry.
Since my server uses Linux, the commands are slightly different and had to be adjusted. I changed the primary color to red for root.
# for root, use red
export PS1='\e[1;31m\n\u@\h: \e[0;33m\w\n\e[m→ '
# for my user, use green
export PS1='\e[1;32m\n\u@\h: \e[0;33m\w\n\e[m→ '
Run the following in terminal to avoid a second non visor window, if you are using TotalTerminal, of course:
defaults write com.apple.Terminal TotalTerminalCloseWindowsOnStart -bool YES
You may wanna add MAMP's PHP and MySQL. Checkout my gist on Starting with Laravel
Don't forget to install The Fuck.
I used the following links to do most of what I did here.