zsh: only try to alias emacsremote if it exists
This commit is contained in:
parent
6f5012e070
commit
0c2b77555d
|
@ -127,7 +127,9 @@ if type emacsclient >& - \
|
|||
&& [[ ${COLORTERM} == *(truecolor|24bit)* ]] \
|
||||
&& [[ -f "/usr/share/terminfo/${TERM[1]}/${TERM%-*}-direct" ]]; then
|
||||
alias $(command -v emacsclient)="TERM=${TERM%-*}-direct $(command -v emacsclient)"
|
||||
alias $(command -v emacsremote)="TERM=${TERM%-*}-direct $(command -v emacsremote)"
|
||||
if type emacsclient >& -; then
|
||||
alias $(command -v emacsremote)="TERM=${TERM%-*}-direct $(command -v emacsremote)"
|
||||
fi
|
||||
fi
|
||||
|
||||
[[ ${COLORTERM} == *(truecolor|24bit)* ]] && export NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||
|
|
Loading…
Reference in New Issue
Block a user