Skip to content

Instantly share code, notes, and snippets.

@adrienjoly
Created September 27, 2012 14:27
Show Gist options
  • Save adrienjoly/3794290 to your computer and use it in GitHub Desktop.
Save adrienjoly/3794290 to your computer and use it in GitHub Desktop.
osx/bash script commands to set the terminal window's title and current path
# set mac osx's terminal title to "My Title"
echo -n -e "\033]0;My Title\007"
# make sure to switch to the script's dir (e.g. when launched via mac osx's finder)
cd `dirname "$0"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment