Back to $ prompt

This commit is contained in:
Henrik Lissner 2013-12-19 09:50:27 -05:00
parent 2b25599896
commit de43fd6feb

View file

@ -27,9 +27,9 @@ function prompt_git {
function prompt_vimode { function prompt_vimode {
# The prompt turns green in command mode, and red in insert mode # The prompt turns green in command mode, and red in insert mode
PROMPT="$>" PROMPT="$"
MODE_INDICATOR="%{$fg[green]%}%{$PROMPT%} " MODE_INDICATOR="%{$fg[green]%}%{$PROMPT%}"
MODE_PROMPT="${${KEYMAP/vicmd/$MODE_INDICATOR}/(main|viins)/}" MODE_PROMPT="${${KEYMAP/vicmd/$MODE_INDICATOR}/(main|viins)/}"
if [ $MODE_PROMPT ]; then if [ $MODE_PROMPT ]; then
echo -n "$MODE_PROMPT " echo -n "$MODE_PROMPT "