Skip to content

Instantly share code, notes, and snippets.

@scips
Created October 9, 2017 14:20
Show Gist options
  • Save scips/c39f1a28522c4546a42a4d0bf82b5d8d to your computer and use it in GitHub Desktop.
Save scips/c39f1a28522c4546a42a4d0bf82b5d8d to your computer and use it in GitHub Desktop.
Make an infinite loop while true and set the xterm title the command executed
#!/bin/bash
TITLE="$@"
printf '\e]2;%s\a' "$TITLE";
while true
do
"$@"
sleep 30
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment