mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-22 17:27:40 +00:00
Add notify functions to fish shell
This commit is contained in:
parent
c51c17e15d
commit
90f29722b2
@ -10,3 +10,4 @@ Plugin "osx"
|
||||
Plugin "pbcopy"
|
||||
Plugin "port"
|
||||
Plugin "force"
|
||||
Plugin "notify-funcs"
|
||||
|
@ -0,0 +1,3 @@
|
||||
function notify-fail --description "Notify a failure message"
|
||||
terminal-notifier -message "Failure"
|
||||
end
|
@ -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
|
@ -0,0 +1,3 @@
|
||||
function notify-success --description "Notify a success message"
|
||||
terminal-notifier -message "Success"
|
||||
end
|
Loading…
Reference in New Issue
Block a user