Created
September 27, 2012 14:27
-
-
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
This file contains 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 characters
# 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