plugin.zsh: Mute fd close in zshexit hook

This commit is contained in:
Sebastian Gniazdowski 2018-01-06 12:56:11 +01:00
parent 4483a1edc8
commit 337d264b94

View file

@ -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