Browse Source

Rename completion indicator

master
Sorin Ionescu 13 years ago
parent
commit
f1bcae7fae
  1. 4
      keyboard.zsh
  2. 2
      themes/sorin/prompt_sorin_setup

4
keyboard.zsh

@ -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

2
themes/sorin/prompt_sorin_setup

@ -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'

Loading…
Cancel
Save