Skip to content

Instantly share code, notes, and snippets.

@ap
Created December 31, 2008 07:58
Show Gist options
  • Save ap/41923 to your computer and use it in GitHub Desktop.
Save ap/41923 to your computer and use it in GitHub Desktop.
Set terminal title then run a command
#!/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