mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
If LS_COLORS set, use those colours for tab completion for consistent appearance. Using this is simply a matter of calling dircolors _before_ omz init.
This commit is contained in:
parent
46c42b4c8f
commit
8c9d25d452
1 changed files with 5 additions and 1 deletions
|
|
@ -18,7 +18,11 @@ else
|
||||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zstyle ':completion:*' list-colors ''
|
if [[ -n $LS_COLORS ]]; then
|
||||||
|
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||||
|
else
|
||||||
|
zstyle ':completion:*' list-colors ''
|
||||||
|
fi
|
||||||
|
|
||||||
# should this be in keybindings?
|
# should this be in keybindings?
|
||||||
bindkey -M menuselect '^o' accept-and-infer-next-history
|
bindkey -M menuselect '^o' accept-and-infer-next-history
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue