Created
March 8, 2017 07:31
-
-
Save hieuns/687fe45a1b593da3838953af7ad5d685 to your computer and use it in GitHub Desktop.
Run rspec command and show notification when it finished
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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