diff --git a/dotfiles/lib/zsh.sh b/dotfiles/lib/zsh.sh index 7ea78923..4be71222 100644 --- a/dotfiles/lib/zsh.sh +++ b/dotfiles/lib/zsh.sh @@ -17,7 +17,7 @@ function if_emacs_zsh { if [ -z $(echo "$INSIDE_EMACS" | grep comint) ]; then set_my_prompt else - echo; + PS1="$ " fi } diff --git a/dotfiles/lib/zsh/prompt.sh b/dotfiles/lib/zsh/prompt.sh index af625686..36b81657 100644 --- a/dotfiles/lib/zsh/prompt.sh +++ b/dotfiles/lib/zsh/prompt.sh @@ -113,6 +113,15 @@ function prompt_monokai_colors { export SOURCE_CONTROL_COLOR="$fg[white]" } +function prompt_no_colors { + export SEPARATOR_COLOR="" + export HOSTNAME_COLOR="" + export USERNAME_COLOR="" + export CURRENT_DIRECTORY_COLOR="" + export SOURCE_CONTROL_COLOR="" + export reset_color="" +} + function prompt_basic_colors_with_grey_separator { prompt_basic_colors export SEPARATOR_COLOR="$FG[239]" diff --git a/dotfiles/lib/zsh/term_support.sh b/dotfiles/lib/zsh/term_support.sh index 23bebf34..534cd404 100644 --- a/dotfiles/lib/zsh/term_support.sh +++ b/dotfiles/lib/zsh/term_support.sh @@ -48,5 +48,8 @@ function emacs_ansi_term_support { } if environment_variable_exists INSIDE_EMACS; then - add-zsh-hook precmd emacs_ansi_term_support + if [[ $INSIDE_EMACS == *"term"* ]] + then + add-zsh-hook precmd emacs_ansi_term_support + fi fi