else
venv="${VIRTUAL_ENV##*/}"
fi
- echo "🐍${venv}"
+ echo "%{%F{green}%}py%{%F{black}%} ${venv}"
}
function rvm_info {
else
rvminfo=`rvm-prompt`
fi
- echo "💎${rvminfo}"
+ echo "%{%F{red}%}rb%{%F{black}%} ${rvminfo}"
}
function nvm_info {
else
nvminfo=`nvm current`
fi
- echo "💛${nvminfo}"
+ echo "%{%F{yellow}%}js%{%F{black}%} ${nvminfo}"
}
function box_name {
#
function zle-line-init zle-keymap-select {
- local return_status="%{%F{red}%}%(?..🆇)%{$reset_color%}"
+
+ # Couldn't figure out how to get tmux and iTerm to agree on how to render
+ # these characters... so there you go.
+
+ local normal_symbol="N"
+ local insert_symbol="I"
+ local error_symbol="X"
+
+ # Show vi status / return status on the right side
+
+ local return_status="%{%F{red}%}%(?.. $error_symbol)%{$reset_color%}"
if [ $KEYMAP = 'vicmd' ]; then
- local edit_status="%{%F{cyan}%}🅽"
+ local edit_status="%{%F{cyan}%}$normal_symbol"
else
- local edit_status="%{%F{green}%}🅸"
+ local edit_status="%{%F{green}%}$insert_symbol"
fi
- RPS1="${edit_status} ${return_status} %{$reset_color%}"
- RPS2=$RPS1
+ RPROMPT="${edit_status}${return_status}%{$reset_color%}"
zle reset-prompt
}
zle -N zle-line-init
prompt_setup "$@"
setopt PROMPT_SUBST
+setopt PROMPT_PERCENT
+setopt TRANSIENT_RPROMPT