WIP shell mode support
This commit is contained in:
parent
545e36dc4f
commit
e6d4c535af
@ -17,7 +17,7 @@ function if_emacs_zsh {
|
||||
if [ -z $(echo "$INSIDE_EMACS" | grep comint) ]; then
|
||||
set_my_prompt
|
||||
else
|
||||
echo;
|
||||
PS1="$ "
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -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]"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user