shoestrap/assets/default/fish/custom/plugins/notify-funcs/notify-result.fish

8 lines
202 B
Fish
Raw Normal View History

2015-07-06 16:22:26 +00:00
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