mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
lib/shopt: Refactor "{ => OMB_}CASE_SENSITIVE"
This commit is contained in:
@@ -27,9 +27,10 @@ shopt -s nocaseglob;
|
|||||||
## SMARTER TAB-COMPLETION (Readline bindings) ##
|
## SMARTER TAB-COMPLETION (Readline bindings) ##
|
||||||
|
|
||||||
# Perform file completion in a case insensitive fashion
|
# Perform file completion in a case insensitive fashion
|
||||||
if [[ ${CASE_SENSITIVE-} == false ]]; then
|
# Note: CASE_SENSITIVE is the compatibility name
|
||||||
|
if [[ ${OMB_CASE_SENSITIVE:-${CASE_SENSITIVE:-}} == false ]]; then
|
||||||
bind "set completion-ignore-case on"
|
bind "set completion-ignore-case on"
|
||||||
elif [[ ${CASE_SENSITIVE-} == true ]]; then
|
elif [[ ${OMB_CASE_SENSITIVE:-${CASE_SENSITIVE:-}} == true ]]; then
|
||||||
bind "set completion-ignore-case off"
|
bind "set completion-ignore-case off"
|
||||||
else
|
else
|
||||||
# By default, case sensitivity is disabled.
|
# By default, case sensitivity is disabled.
|
||||||
|
@@ -12,7 +12,7 @@ export OSH=~/.oh-my-bash
|
|||||||
OSH_THEME="font"
|
OSH_THEME="font"
|
||||||
|
|
||||||
# Uncomment the following line to use case-sensitive completion.
|
# Uncomment the following line to use case-sensitive completion.
|
||||||
# CASE_SENSITIVE="true"
|
# OMB_CASE_SENSITIVE="true"
|
||||||
|
|
||||||
# Uncomment the following line to use hyphen-insensitive completion. Case
|
# Uncomment the following line to use hyphen-insensitive completion. Case
|
||||||
# sensitive completion must be off. _ and - will be interchangeable.
|
# sensitive completion must be off. _ and - will be interchangeable.
|
||||||
|
Reference in New Issue
Block a user