diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 25e8814..33387db 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -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