aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2007-04-24 07:10:26 +1000
committerGravatar axel <axel@liljencrantz.se>2007-04-24 07:10:26 +1000
commite2714b05eb06dd56710d975fcac7996c84ba2dd2 (patch)
tree43b30ecc0558630c6e6821a219c81967adbe3de7
parent2c02b59703616a46834f57df343c3d237327f59a (diff)
Launch debug shell on TRAP signal.
darcs-hash:20070423211026-ac50b-fccf4fb588775fbacc5cdc9f121abe417970066f.gz
-rw-r--r--share/config.fish.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/config.fish.in b/share/config.fish.in
index 681c9099..266e0bba 100644
--- a/share/config.fish.in
+++ b/share/config.fish.in
@@ -86,6 +86,10 @@ for i in (printf "%s\n" $path_list|sgrep -E -v $path_regexp)
end
end
+# Launch debugger on SIGTRAP
+function fish_sigtrap_handler --on-signal TRAP --no-scope-shadowing --description "Signal handler for the TRAP signal. Lanches a debug prompt."
+ breakpoint
+end
if status --is-interactive
. config_interactive.fish