aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/trap.fish
diff options
context:
space:
mode:
authorGravatar David Woods <david@birnamdesigns.com>2015-07-08 23:56:20 -0400
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-12 14:21:05 -0700
commit4a3cda1495383d7ba786e2d10f21ff27fa1f01e0 (patch)
tree48ce567131d7d71e7b94d85337573c8f3adfe569 /share/functions/trap.fish
parent05daedf7c6b8ad7cc84d0be644e9a2cb8a140128 (diff)
update function parameter for EXIT signal
changed `function __trap_handler_EXIT --on-exit %self` to `function __trap_handler_EXIT --on-process-exit %self` I'm guessing the on-exit syntax was from an older version? Trapping EXIT with that syntax caused errors.
Diffstat (limited to 'share/functions/trap.fish')
-rw-r--r--share/functions/trap.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/trap.fish b/share/functions/trap.fish
index 640567f3..ff4868f2 100644
--- a/share/functions/trap.fish
+++ b/share/functions/trap.fish
@@ -12,7 +12,7 @@ function __trap_switch
switch $argv[1]
case EXIT
- echo --on-exit %self
+ echo --on-process-exit %self
case '*'
echo --on-signal $argv[1]