Add abbreviations for notify-to-slack

This commit is contained in:
ViViDboarder 2022-01-27 12:36:28 -08:00
parent 10badb018c
commit 58dfd9bbe1

View File

@ -35,3 +35,11 @@ abbr --global --add pb-failure pb "Failure"
function pb-notify function pb-notify
[ $status = 0 ] ;and pb-success ;or pb-failure [ $status = 0 ] ;and pb-success ;or pb-failure
end end
# notify-to-slack
abbr --global --add ns-done notify-to-slack Done
abbr --global --add ns-success notify-to-slack Success
abbr --global --add ns-failure notify-to-slack Failure
function ns-notify
notify-to-slack --status $status "Done"
end