mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
fix: allow running with nounset option
This commit is contained in:
parent
e42ac8c57b
commit
1902a0544c
8 changed files with 15 additions and 15 deletions
|
|
@ -14,10 +14,10 @@ bindkey -M menuselect '^o' accept-and-infer-next-history
|
|||
zstyle ':completion:*:*:*:*:*' menu select
|
||||
|
||||
# case insensitive (all), partial-word and substring completion
|
||||
if [[ "$CASE_SENSITIVE" = true ]]; then
|
||||
if [[ "${CASE_SENSITIVE:-}" = true ]]; then
|
||||
zstyle ':completion:*' matcher-list 'r:|=*' 'l:|=* r:|=*'
|
||||
else
|
||||
if [[ "$HYPHEN_INSENSITIVE" = true ]]; then
|
||||
if [[ "${HYPHEN_INSENSITIVE:-}" = true ]]; then
|
||||
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]-_}={[:upper:][:lower:]_-}' 'r:|=*' 'l:|=* r:|=*'
|
||||
else
|
||||
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|=*' 'l:|=* r:|=*'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue