Skip to content

Instantly share code, notes, and snippets.

@gargolito
Last active July 31, 2020 00:14
Show Gist options
  • Save gargolito/2e8975f4cb3269e233764334516f9f69 to your computer and use it in GitHub Desktop.
Save gargolito/2e8975f4cb3269e233764334516f9f69 to your computer and use it in GitHub Desktop.
stay() {
echo ""
bash --noprofile --norc
bye=1
}
bye=0
trap stay INT
for i in {9..1}; do
test $bye -eq 1 && break
echo -en "$i "
sleep 1
done
echo "ttfn"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment