about summary refs log tree commit diff
path: root/Src/init.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-11 19:46:32 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-11 19:46:32 +0000
commit779b36d8442997a42de3fb5c032fbb984498182a (patch)
tree4bb72d633aaadd4028ed24502dd1724a4d3cedf6 /Src/init.c
parenta008690d67199d689b54972fa27a3398c1c74a7e (diff)
downloadzsh-779b36d8442997a42de3fb5c032fbb984498182a.tar.gz
zsh-779b36d8442997a42de3fb5c032fbb984498182a.tar.xz
zsh-779b36d8442997a42de3fb5c032fbb984498182a.zip
zsh-3.1.6-dev-18 zsh-3.1.6-dev-18
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/init.c b/Src/init.c
index 1921935eb..0dc063f7b 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -89,6 +89,11 @@ mod_export int (*getkeyptr) _((int));
 mod_export int alloc_stackp;
 #endif
 
+/**/
+mod_export struct hookdef zshhooks[] = {
+    HOOKDEF("exit", NULL, HOOKF_ALL),
+};
+
 /* keep executing lists until EOF found */
 
 /**/
@@ -560,6 +565,8 @@ setupvals(void)
 # endif
 #endif
 
+    addhookdefs(argzero, zshhooks, sizeof(zshhooks)/sizeof(*zshhooks));
+
     init_eprog();
 
     getkeyptr = NULL;