Skip to content

Instantly share code, notes, and snippets.

@cwsaylor
Created January 31, 2009 23:45
Show Gist options
  • Save cwsaylor/55711 to your computer and use it in GitHub Desktop.
Save cwsaylor/55711 to your computer and use it in GitHub Desktop.
# Customize the terminal tabs
# put this in your .profile or .bashrc
function settitle() { echo -ne "\e]2;$@\a\e]1;$@\a"; }
function cd() { command cd "$@"; settitle `basename $(pwd)`; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment