Skip to content

Instantly share code, notes, and snippets.

@rightfold

rightfold/.zshrc Secret

Created February 2, 2015 10:05
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 rightfold/cab9ba3a5c09facecc1f to your computer and use it in GitHub Desktop.
Save rightfold/cab9ba3a5c09facecc1f to your computer and use it in GitHub Desktop.
ninfo() { sw-notify-send -t $1 -u 0 "$2" }
nwarn() { sw-notify-send -t $1 -u 1 "$2" }
nerror() { sw-notify-send -t $1 -u 2 "$2" }
nstatus() { $@ && ninfo 0 "$1 OK" || nerror 0 "$1 ERROR" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment