From d4094255518a76e667587571131cd1ce95d06955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Tue, 21 Jan 2020 21:18:18 +0100 Subject: [PATCH] zsh: use basic color for autosuggestion and no directory tracking in Emacs shell --- .config/zsh/.zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 3a360de..6c133db 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -14,7 +14,7 @@ HIST_STAMPS="yyyy-mm-dd" HISTFILE="$ZDOTDIR/.zsh_history" # Styles. -ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ff00ff,underline" +ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=5,underline" # Plugins to load. plugins=(git scd zsh-syntax-highlighting zsh-autosuggestions) @@ -39,4 +39,6 @@ function vterm_printf(){ vterm_prompt_end() { vterm_printf "51;A$(whoami)@$(hostname):$(pwd)"; } -PROMPT=$PROMPT'%{$(vterm_prompt_end)%}' +if [ "$TERM" != "dumb" ]; then + PROMPT=$PROMPT'%{$(vterm_prompt_end)%}' +fi