WIP shell mode support

This commit is contained in:
Ivan Malison 2015-11-14 00:40:20 -08:00
parent 545e36dc4f
commit e6d4c535af
3 changed files with 14 additions and 2 deletions

View File

@ -17,7 +17,7 @@ function if_emacs_zsh {
if [ -z $(echo "$INSIDE_EMACS" | grep comint) ]; then
set_my_prompt
else
echo;
PS1="$ "
fi
}

View File

@ -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]"

View File

@ -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