mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
lib/shopt: Revert the meaning "OMB_HYPHEN_{IN => }SENSITIVE"
This commit is contained in:
@@ -46,7 +46,13 @@ else
|
||||
|
||||
# Treat hyphens and underscores as equivalent
|
||||
# CASE_SENSITIVE must be off
|
||||
if [[ ${OMB_HYPHEN_INSENSITIVE:-${HYPHEN_INSENSITIVE:-false}} == true ]]; then
|
||||
if [[ ! ${OMB_HYPHEN_SENSITIVE-} && ${HYPHEN_INSENSITIVE} ]]; then
|
||||
case $HYPHEN_INSENSITIVE in
|
||||
(true) OMB_HYPHEN_SENSITIVE=true ;;
|
||||
(false) OMB_HYPHEN_SENSITIVE=false ;;
|
||||
esac
|
||||
fi
|
||||
if [[ ${OMB_HYPHEN_SENSITIVE-} == false ]]; then
|
||||
bind "set completion-map-case on"
|
||||
fi
|
||||
fi
|
||||
|
@@ -16,7 +16,7 @@ OSH_THEME="font"
|
||||
|
||||
# Uncomment the following line to use hyphen-insensitive completion. Case
|
||||
# sensitive completion must be off. _ and - will be interchangeable.
|
||||
# OMB_HYPHEN_INSENSITIVE="true"
|
||||
# OMB_HYPHEN_SENSITIVE="false"
|
||||
|
||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
||||
# DISABLE_AUTO_UPDATE="true"
|
||||
|
Reference in New Issue
Block a user