mirror of
https://github.com/zdharma-continuum/zconvey.git
synced 2026-09-10 07:06:21 -04:00
plugin.zsh: Mute fd close in zshexit hook
This commit is contained in:
parent
4483a1edc8
commit
337d264b94
|
|
@ -488,7 +488,7 @@ __zconvey_precmd_hook() {
|
|||
# Not called ideally at say SIGTERM, but
|
||||
# at least when "exit" is enterred
|
||||
function __zconvey_zshexit() {
|
||||
[[ "$ZCONVEY_FD" != "0" && "$SHLVL" = "1" ]] && exec {ZCONVEY_FD}>&-
|
||||
[[ "$ZCONVEY_FD" != "0" && "$SHLVL" = "1" ]] && { exec {ZCONVEY_FD}>&- ; } 2>/dev/null
|
||||
}
|
||||
|
||||
if ! type sched 2>/dev/null 1>&2; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue