Skip to content

Commit

Permalink
Set the terminal title in OS X, stolen from http://tinyurl.com/5u9wfr
Browse files Browse the repository at this point in the history
(cherry picked from commit 78f337e)
  • Loading branch information
ryanfb authored and Bryce Kerley committed Aug 18, 2008
1 parent a3a9f03 commit c45d804
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 07_title
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Set the terminal title in OS X, stolen from http://tinyurl.com/5u9wfr
case $TERM in (*xterm*|ansi)
function settab { print -Pn "\e]1;%n@%m: %~\a" }
function settitle { print -Pn "\e]2;%n@%m: %~\a" }
function chpwd { settab; settitle }
settab; settitle
;;
esac

0 comments on commit c45d804

Please sign in to comment.