diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-20 18:44:51 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-20 18:44:51 +0000 |
commit | e7de8c77d47868854a162c2332f36817ba9b5bba (patch) | |
tree | ef5febff04efab471e4f1aa884081751cc580654 /Src/init.c | |
parent | 74be4d9a377c6dd7fe5a29c1b053f59db1049762 (diff) | |
download | zsh-e7de8c77d47868854a162c2332f36817ba9b5bba.tar.gz zsh-e7de8c77d47868854a162c2332f36817ba9b5bba.tar.xz zsh-e7de8c77d47868854a162c2332f36817ba9b5bba.zip |
zsh-workers/9390
Diffstat (limited to 'Src/init.c')
-rw-r--r-- | Src/init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/init.c b/Src/init.c index 20e996fdd..4aa268f0d 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; |