zsh: remove unfunction on TERM=dumb

Unfortunately this gives an error when precmd or preexec exists. Removing to avoid that.
This commit is contained in:
Matthew Bauer 2019-08-27 11:00:58 -04:00 committed by GitHub
parent 4d739ce93d
commit 4081bec5ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,7 +214,6 @@ in
# Need to disable features to support TRAMP
if [ "$TERM" = dumb ]; then
unsetopt zle prompt_cr prompt_subst
unfunction precmd preexec
unset RPS1 RPROMPT
PS1='$ '
PROMPT='$ '