Skip to content

Instantly share code, notes, and snippets.

@terroo
Created March 22, 2020 18:48
Show Gist options
  • Save terroo/5bafbcb1cc6f4ab922b70fa165e39468 to your computer and use it in GitHub Desktop.
Save terroo/5bafbcb1cc6f4ab922b70fa165e39468 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Code example to shared snippets
send_msg(){
tput cnorm
echo -e "\n\e[31;1mBye!\e[m"
exit 127
}
trap send_msg SIGINT
tput civis
while true;
do
echo -en "\r\e[33;1mThis is \e[36mMy Code\e[34m at \e[37m$(date +%d/%m/%Y-%H:%M:%S)\e[m"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment