Skip to content

Instantly share code, notes, and snippets.

@hieuns
Created March 8, 2017 07:31
Show Gist options
  • Save hieuns/687fe45a1b593da3838953af7ad5d685 to your computer and use it in GitHub Desktop.
Save hieuns/687fe45a1b593da3838953af7ad5d685 to your computer and use it in GitHub Desktop.
Run rspec command and show notification when it finished
#!/bin/sh
# get name of current directory
current_dir=${PWD##*/}
if rspec $@; then
notify-send -i face-laugh "Rspec in $current_dir end: Success"
else
notify-send -i face-sad "Rspec in $current_dir end: Failure"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment