Created
November 21, 2014 07:13
-
-
Save trbhoang/f1033a3285af00d9db25 to your computer and use it in GitHub Desktop.
Revisions
-
trbhoang created this gist
Nov 21, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ # refs: # https://coderwall.com/p/hox_hq/keep-terminal-app-tab-name-follow-working-host # http://wiki.bash-hackers.org/scripting/posparams # # customize Terminal tab title # function tabname () { # Change Terminal.app tab name (by josjbuhler) echo -en "\033];$1\007" } function sshname () { SSHHOST="${@: -1}" tabname "`echo $SSHHOST`" unalias ssh ssh $1 alias ssh=sshname tabname $USER'@localhost' } alias ssh=sshname tabname $USER'@localhost'