zsh: reduce config if TERM == dumb
Fixes TRAMP hangs when connecting to some machines
This commit is contained in:
parent
e74fb44280
commit
60e3a4abaa
|
@ -16,8 +16,9 @@ if ! zgen saved; then
|
||||||
zgen save
|
zgen save
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source $ZDOTDIR/prompt.zsh
|
|
||||||
source $ZDOTDIR/config.zsh
|
source $ZDOTDIR/config.zsh
|
||||||
|
if [[ $TERM != dumb ]]; then
|
||||||
|
source $ZDOTDIR/prompt.zsh
|
||||||
source $ZDOTDIR/keybinds.zsh
|
source $ZDOTDIR/keybinds.zsh
|
||||||
source $ZDOTDIR/completion.zsh
|
source $ZDOTDIR/completion.zsh
|
||||||
source $ZDOTDIR/aliases.zsh
|
source $ZDOTDIR/aliases.zsh
|
||||||
|
@ -57,3 +58,4 @@ autopair-init
|
||||||
|
|
||||||
# If you have host-local configuration, this is where you'd put it
|
# If you have host-local configuration, this is where you'd put it
|
||||||
[ -f ~/.config/zsh/rc ] && source ~/.config/zsh/rc
|
[ -f ~/.config/zsh/rc ] && source ~/.config/zsh/rc
|
||||||
|
fi
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
# Stop term/shell echoing back my input
|
# Stop TRAMP (in Emacs) from hanging or term/shell from echoing back commands
|
||||||
if [[ -n $INSIDE_EMACS ]]; then
|
if [[ $TERM == dumb || -n $INSIDE_EMACS ]]; then
|
||||||
unsetopt zle
|
unsetopt zle
|
||||||
|
unsetopt prompt_cr
|
||||||
|
unsetopt prompt_subst
|
||||||
|
whence -w precmd >/dev/null && unfunction precmd
|
||||||
|
whence -w preexec >/dev/null && unfunction preexec
|
||||||
|
PS1='$ '
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## General
|
## General
|
||||||
|
|
Loading…
Reference in a new issue