From 3f814e370b629c9555f070e7d73c83aa7248b853 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 31 Jul 2017 14:21:33 -0700 Subject: [PATCH] [shell] Cleanup --- dotfiles/lib/zsh.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dotfiles/lib/zsh.sh b/dotfiles/lib/zsh.sh index 72796319..e1413d79 100644 --- a/dotfiles/lib/zsh.sh +++ b/dotfiles/lib/zsh.sh @@ -9,13 +9,7 @@ autoload run-help HELPDIR=/usr/local/share/zsh/helpfiles function if_emacs_zsh { - if [ -z $(echo "$INSIDE_EMACS" | grep comint) ]; then - set_my_prompt - else - PS1="$ " - fi + echo "$INSIDE_EMACS" | grep -q term && export PS1="$ " } -environment_variable_exists INSIDE_EMACS && if_emacs_zsh || set_default_prompt - environment_variable_exists INSIDE_EMACS && export PROMPT='$ '