zsh: only try to alias emacsremote if it exists

This commit is contained in:
tastytea 2022-08-09 22:21:37 +02:00
parent 6f5012e070
commit 0c2b77555d
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -127,7 +127,9 @@ if type emacsclient >& - \
&& [[ ${COLORTERM} == *(truecolor|24bit)* ]] \ && [[ ${COLORTERM} == *(truecolor|24bit)* ]] \
&& [[ -f "/usr/share/terminfo/${TERM[1]}/${TERM%-*}-direct" ]]; then && [[ -f "/usr/share/terminfo/${TERM[1]}/${TERM%-*}-direct" ]]; then
alias $(command -v emacsclient)="TERM=${TERM%-*}-direct $(command -v emacsclient)" 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 fi
[[ ${COLORTERM} == *(truecolor|24bit)* ]] && export NVIM_TUI_ENABLE_TRUE_COLOR=1 [[ ${COLORTERM} == *(truecolor|24bit)* ]] && export NVIM_TUI_ENABLE_TRUE_COLOR=1