From: Ruben Beltran del Rio Date: Tue, 22 Sep 2020 23:18:53 +0000 (+0200) Subject: Use text instead of symbols and emoji X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/commitdiff_plain/64c29a52f870d51090107d44e3fe85cdce7d63ff?ds=inline Use text instead of symbols and emoji --- diff --git a/zsh/modules/prompt.zsh b/zsh/modules/prompt.zsh index b21a41f..482bfc7 100644 --- a/zsh/modules/prompt.zsh +++ b/zsh/modules/prompt.zsh @@ -22,7 +22,7 @@ function virtualenv_info { else venv="${VIRTUAL_ENV##*/}" fi - echo "🐍 ${venv}" + echo "%{%F{green}%}py%{%F{black}%} ${venv}" } function rvm_info { @@ -31,7 +31,7 @@ function rvm_info { else rvminfo=`rvm-prompt` fi - echo "💎 ${rvminfo}" + echo "%{%F{red}%}rb%{%F{black}%} ${rvminfo}" } function nvm_info { @@ -40,7 +40,7 @@ function nvm_info { else nvminfo=`nvm current` fi - echo "💛 ${nvminfo}" + echo "%{%F{yellow}%}js%{%F{black}%} ${nvminfo}" } function box_name { @@ -56,13 +56,9 @@ function zle-line-init zle-keymap-select { # 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="🅽" - local insert_symbol="🅸" - local error_symbol="🆇" - - [ ! -z "$TMUX" ] && normal_symbol="%{$normal_symbol%2G%}" - [ ! -z "$TMUX" ] && insert_symbol="%{$insert_symbol%2G%}" - [ ! -z "$TMUX" ] && error_symbol="%{$error_symbol%2G%}" + local normal_symbol="N" + local insert_symbol="I" + local error_symbol="X" # Show vi status / return status on the right side