Skip to content

Instantly share code, notes, and snippets.

@terroo terroo/mycode.sh
Created Mar 22, 2020

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.