Skip to content

Instantly share code, notes, and snippets.

@Genki-S
Created December 10, 2014 03:33
Show Gist options
  • Save Genki-S/0afb54536a89d7962fa8 to your computer and use it in GitHub Desktop.
Save Genki-S/0afb54536a89d7962fa8 to your computer and use it in GitHub Desktop.
# Show sushi if current second is 29
show_niku() {
local sec=$(date +%S)
if [ $sec -eq 29 ]; then
echo "🍣"
fi
}
# it goes well with zsh precmd hook
add-zsh-hook precmd show_niku
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment