Skip to content

Instantly share code, notes, and snippets.

@pielgrzym
Last active December 10, 2015 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pielgrzym/4434885 to your computer and use it in GitHub Desktop.
Save pielgrzym/4434885 to your computer and use it in GitHub Desktop.
better_which(){
tput smcup
local -i i="$1"
shift
while : ; do
tput clear
"$@"
sleep $i
trap 'break' 2
done
tput rmcup
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment