Terminal Shenanigans

Terminal Shenanigans

SuperJer
Websiteman

2005 Mar 20 • 6153
Everyone ignore this.

I'm constantly having to re-choose the palette for my gnome-terminal on various different machines. So I'm just going to paste it here to make things easier.

This goes in:
~/.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml

xml code

<entry name="palette" mtime="1303844291" type="string">
<stringvalue>#2E2E34343636:#FFFF00000000:#6E6EE1E10000:#F655C9170000:#00007070FFFF:#D0810000FFFF:#0000D0E3FFFF:#A94AA94AA94A:#555557575353:#FC916C1829BA:#C069FFFF463D:#FFFFEFF86E0C:#6B5EAC8AFFFF:#FFFF81FEF24D:#82A0FFFFD738:#EEEEEEEEECEC</stringvalue>
</entry>


And while I'm at it here's my kickass bash prompt. The idea is to have a different color for each machine you might SSH to.

It includes the current git branch as well, if there is one.

bash code

host=$( hostname | tr '[:upper:]' '[:lower:]' )
case $host in
machine1) HOSTCOLOR=31 ;;
machine2) HOSTCOLOR=91 ;;
machine3) HOSTCOLOR=35 ;;
machine4) HOSTCOLOR=90 ;;
machine5) HOSTCOLOR=96 ;;
machine6) HOSTCOLOR=34 ;;
machine7) HOSTCOLOR=32 ;;
machine8) HOSTCOLOR=95 ;;
*) HOSTCOLOR=93 ;;
esac
PS1='\[\e[90m\]\D{%H}\[\e[37m\]\D{%M}\[\e[90m\]\D{%S} \[\e[$(echo $HOSTCOLOR)m\]\u@\h \[\e[33m\]\W\[\e[36m\]$(__git_ps1 "(%s)")\[\e[33m\]\$\[\e[m\] '


 
 
2011 Apr 26 at 19:23 PDT — Ed. 2011 Apr 26 at 19:39 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
Clevers :) I don't ssh to many places but the one that I do switch to looks considerably different, they appear to use an older version of bash.
 
 
2011 Apr 27 at 04:04 PDT
Page [1]