Add notify functions to fish shell

This commit is contained in:
ViViDboarder 2015-07-06 09:22:26 -07:00
parent c51c17e15d
commit 90f29722b2
4 changed files with 14 additions and 0 deletions

View File

@ -10,3 +10,4 @@ Plugin "osx"
Plugin "pbcopy"
Plugin "port"
Plugin "force"
Plugin "notify-funcs"

View File

@ -0,0 +1,3 @@
function notify-fail --description "Notify a failure message"
terminal-notifier -message "Failure"
end

View File

@ -0,0 +1,7 @@
function notify-result --description "Notify success or failure depending on the result of the previous command"
if [ $status -eq 0 ]
notify-success
else
notify-fail
end
end

View File

@ -0,0 +1,3 @@
function notify-success --description "Notify a success message"
terminal-notifier -message "Success"
end