Skip to content
This repository
Browse code

Set the terminal title in OS X, stolen from http://tinyurl.com/5u9wfr

  • Loading branch information...
commit 78f337e52d8a2b04deee544b39350c95dcbc21f5 1 parent 73c601a
Ryan Baumann authored

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. +8 0 07_title
8 07_title
... ... @@ -0,0 +1,8 @@
  1 +# Set the terminal title in OS X, stolen from http://tinyurl.com/5u9wfr
  2 +case $TERM in (*xterm*|ansi)
  3 + function settab { print -Pn "\e]1;%n@%m: %~\a" }
  4 + function settitle { print -Pn "\e]2;%n@%m: %~\a" }
  5 + function chpwd { settab; settitle }
  6 + settab; settitle
  7 + ;;
  8 +esac

0 comments on commit 78f337e

Please sign in to comment.
Something went wrong with that request. Please try again.