OS-X Terminal Tastiness

I like the Terminal in OS-X.  However, there are a few things you can do to make it much nicer.

The most important step is the Visor Plugin. it gives you a quake like drop down window for your terminal. I bind my terminal to Command+\.  The original developer also wrote quicksilver, and he now works for Google.

Next add a plugin that allows you to change your terminal colors, called appropriately enough TerminalColours.bundle. The main google link brought me to an installer that didn’t work for me, but seemed to be the official link. The previous link is to a page that has a bundle that installed as expected.

Now let’s get the color layout that’s so easy on the eyes. I found IR_Black, and it works very well. You just have to download it and double click the .terminal file.

To rename the terminal tabs, I had to use yet another bundle – TabNamer.bundle. The normal Unixy way of changing terminal titles doesn’t work reliably for OS-X.

Next, make sure you’ve got a very nice prompt.  This is my .bash_profile.  If you’re on OS-X, you can copy this to your ~/.profile and as it sit it will work.

set -o vi
 
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
 
alias ...='cd ../..'
alias ?='history | grep $1'
alias grep='GREP_COLOR="1;37;41" LANG=C grep --color=auto'
alias ll='ls -laF'
alias ls='ls -A'
 
alias cm='echo Connecting to cainmanor.com; ssh xxx@xxx.xxx -p 12345'
alias home='echo Connecting to Cain Manor; ssh xxx@xxx.xxx -p 12345'
 
alias gssh='echo $1;ssh $1 -l greg.cain'
alias rssh='echo $1;ssh $1 -l root'
 
alias hog10='ps -e -o pid,pcpu,cpu,nice,state,cputime,cmd --sort -pcpu | sed "/^ o.o /d" | head -n 10'
alias hog='ps -e -o pid,pcpu,cpu,nice,state,cputime,cmd --sort -pcpu | sed "/^ o.o /d"'
 
alias serve='hostname;python -m SimpleHTTPServer 8080'
 
# If id command returns zero, you’ve root access.
if [ $(id -u) -eq 0 ];
then # you are root, set red colour prompt
	PS1="\e[0;31m[ \u@\h:\e[0;34m\w \e[0;31m] \e[m"
  else # normal
	PS1="\e[0;32m[ \h:\e[0;34m\w \e[0;32m] \e[m"
fi

Lastly, refer back to my earlier post for nicer fonts.

This is what my Terminal looks like now.  It’s available in all Spaces, and available at the touch of a key (or two keys.)

after

One Comment

Comments are closed.