Friday 18 May 2012

Command prompt and iTerm window dressing for BASH shells.

Just a quick one, this. After nearly a decade of inner guilt at using a C-shell I have finally switched over to a BASH shell. This required some hacking to get a prompt I could live with and interacted properly (set windows and tab titles etc) with iTerm2. The following line in my .bashrc:
 export PS1="\[\e]2;\u@\h:\w\[\a\]\[\e]1;\u@\h\[\a\][\h:\W]$ "
delivered what I was after:

No comments:

Post a Comment