News for hackers. Stuff that matters.
Re:Production is Red, Development is Blue by lukeschlather on Monday January 10, 2011 @11:58PM (#2090940)
I have this set in my .bashrc:

     function settitle {
         echo -en "\e]0; $* \a"
     }
     
     function ssh {
         settitle ssh $*
         echo     /usr/bin/ssh $*
         /usr/bin/ssh $*
     }
     function sftp {
         settitle sftp $*
         echo     /usr/bin/ssh $*
         /usr/bin/sftp $*
     }
No, it's not bright and colorful, but it does a good job of telling me where the gnome-terminal I'm using is connected to.

There are no comments on this comment yet.