Created
October 9, 2017 14:20
-
-
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
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="$@" | |
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