Skip to content

Instantly share code, notes, and snippets.

@pa4080
Created May 3, 2018 05:25
Show Gist options
  • Save pa4080/c49ecdb5e40827a5219716ce1323c8d7 to your computer and use it in GitHub Desktop.
Save pa4080/c49ecdb5e40827a5219716ce1323c8d7 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo -e "\nTerminal Clock\n"
while true; do
printf '%(%c)T\r' -1
done
@pa4080
Copy link
Author

pa4080 commented May 3, 2018

Run it on fly:

curl -s https://gist.githubusercontent.com/pa4080/c49ecdb5e40827a5219716ce1323c8d7/raw/7caa8560cb0a95e5d6ff95c8113992122ae31a52/Inline%2520Terminal%2520Clock | bash -s

Or:

wget -qO- https://gist.githubusercontent.com/pa4080/c49ecdb5e40827a5219716ce1323c8d7/raw/7caa8560cb0a95e5d6ff95c8113992122ae31a52/Inline%2520Terminal%2520Clock | bash -s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment