Skip to content

Instantly share code, notes, and snippets.

@pcmantz
Created April 22, 2012 18:11
Show Gist options
  • Save pcmantz/2465838 to your computer and use it in GitHub Desktop.
Save pcmantz/2465838 to your computer and use it in GitHub Desktop.
change title of terminal in Screen if we are in a git repository
export PROMPT_COMMAND='[ -d $(pwd)/.git ] && screen -X title "git $(pwd | xargs basename)"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment