1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 03:27:59 +00:00

Rename completion indicator

This commit is contained in:
Sorin Ionescu 2012-03-28 20:03:40 -04:00
parent 6727edd536
commit f1bcae7fae
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ zstyle ':omz:prompt:vi' insert '>>>'
zstyle ':omz:prompt:vi' command '<<<' zstyle ':omz:prompt:vi' command '<<<'
# Indicator to notify of generating completion. # Indicator to notify of generating completion.
zstyle ':omz:completion' indicator '...' zstyle ':omz:editor' completing '...'
# Beep on error in line editor. # Beep on error in line editor.
setopt BEEP setopt BEEP
@ -96,7 +96,7 @@ zle -N expand-dot-to-parent-directory-path
# Displays an indicator when completing. # Displays an indicator when completing.
function expand-or-complete-with-indicator { function expand-or-complete-with-indicator {
local indicator local indicator
zstyle -s ':omz:completion' indicator 'indicator' zstyle -s ':omz:editor' completing 'indicator'
print -Pn "$indicator" print -Pn "$indicator"
zle expand-or-complete-prefix zle expand-or-complete-prefix
zle redisplay zle redisplay

View File

@ -25,7 +25,7 @@ function prompt_sorin_setup {
autoload -Uz add-zsh-hook autoload -Uz add-zsh-hook
add-zsh-hook precmd prompt_sorin_precmd add-zsh-hook precmd prompt_sorin_precmd
zstyle ':omz:completion' indicator '%B%F{red}...%f%b' zstyle ':omz:editor' completing '%B%F{red}...%f%b'
zstyle ':omz:prompt:vi' insert '' zstyle ':omz:prompt:vi' insert ''
zstyle ':omz:prompt:vi' command ' %F{yellow}%f%B%F{red}%f%b%F{red}%f' zstyle ':omz:prompt:vi' command ' %F{yellow}%f%B%F{red}%f%b%F{red}%f'
zstyle ':omz:plugin:git:prompt' action ':%%B%F{yellow}%s%f%%b' zstyle ':omz:plugin:git:prompt' action ':%%B%F{yellow}%s%f%%b'