mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
LS_COLORS support for completion
This commit is contained in:
parent
5fcb6e1263
commit
4296c9a383
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:|=*'
|
||||
fi
|
||||
|
||||
zstyle ':completion:*' list-colors ''
|
||||
if [ "x$LS_COLORS" = "x" ]; then
|
||||
zstyle ':completion:*' list-colors ''
|
||||
else
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
fi
|
||||
|
||||
# should this be in keybindings?
|
||||
bindkey -M menuselect '^o' accept-and-infer-next-history
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue