Skip to content

Instantly share code, notes, and snippets.

View kitt1987's full-sized avatar
👽
I love this crazy world🤟

Kitt Hsu kitt1987

👽
I love this crazy world🤟
  • Shenzhen,China
View GitHub Profile
@kitt1987
kitt1987 / yell.sh
Created December 11, 2019 09:00
Show notification after executing shell commands.
yell() {
cmd=""
if [ $# -gt 0 ]; then
cmd=$@
else
cmd=$(history| awk '{$1=""; print $0}' | grep -E '^\s*yell.+' | tail -1)
fi
eval $cmd