Fixed bug with empty spaces when tab completion.

This commit is contained in:
Levon Saldamli 2015-02-18 13:31:54 +01:00
commit 37cb2c57fd

View file

@ -22,7 +22,8 @@ theme_precmd () {
}
setopt prompt_subst
PROMPT='%(?.$fg[green].$fg[red])$(toon)%{$reset_color%} %~/ %{$reset_color%}${vcs_info_msg_0_}%{$reset_color%}'
PROMPT='%(?.%{$fg[green]%}.%{$fg[red]%})$(toon) %{$reset_color%} %~/ %{$reset_color%}${vcs_info_msg_0_}%{$reset_color%}'
autoload -U add-zsh-hook
add-zsh-hook precmd theme_precmd