Created
December 31, 2008 07:58
-
-
Save ap/41923 to your computer and use it in GitHub Desktop.
Set terminal title then run a command
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
#!/bin/bash | |
TITLE="$1" | |
shift | |
printf '\e]0;%s\007' "$TITLE" | |
"$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment