lib: rename `_bash-it-clean-component-cache()`
…to `_bash-it-component-cache-clean()`pull/2061/head
parent
6257853759
commit
fe48deda2d
|
|
@ -785,7 +785,7 @@ function _disable-thing() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_bash-it-clean-component-cache "${file_type}"
|
_bash-it-component-cache-clean "${file_type}"
|
||||||
|
|
||||||
if [[ "$file_entity" == "all" ]]; then
|
if [[ "$file_entity" == "all" ]]; then
|
||||||
_bash-it-component-pluralize "$file_type" file_type
|
_bash-it-component-pluralize "$file_type" file_type
|
||||||
|
|
@ -884,7 +884,7 @@ function _enable-thing() {
|
||||||
ln -s "../$subdirectory/available/$to_enable" "${BASH_IT}/enabled/${use_load_priority}${BASH_IT_LOAD_PRIORITY_SEPARATOR}${to_enable}"
|
ln -s "../$subdirectory/available/$to_enable" "${BASH_IT}/enabled/${use_load_priority}${BASH_IT_LOAD_PRIORITY_SEPARATOR}${to_enable}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_bash-it-clean-component-cache "${file_type}"
|
_bash-it-component-cache-clean "${file_type}"
|
||||||
|
|
||||||
printf '%s\n' "$file_entity enabled with priority $use_load_priority."
|
printf '%s\n' "$file_entity enabled with priority $use_load_priority."
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ function _bash-it-search() {
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
'-r' | '--refresh')
|
'-r' | '--refresh')
|
||||||
_bash-it-clean-component-cache
|
_bash-it-component-cache-clean
|
||||||
;;
|
;;
|
||||||
'-c' | '--no-color')
|
'-c' | '--no-color')
|
||||||
BASH_IT_SEARCH_USE_COLOR=false
|
BASH_IT_SEARCH_USE_COLOR=false
|
||||||
|
|
@ -333,7 +333,7 @@ function _bash-it-search-result() {
|
||||||
printf '%b' "${color_off} "
|
printf '%b' "${color_off} "
|
||||||
done
|
done
|
||||||
|
|
||||||
((modified)) && _bash-it-clean-component-cache "${component}"
|
((modified)) && _bash-it-component-cache-clean "${component}"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -121,13 +121,13 @@ function _bash-it-component-pluralize() {
|
||||||
printf -v "${_result?}" '%s' "${_component_to_plural}"
|
printf -v "${_result?}" '%s' "${_component_to_plural}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function _bash-it-clean-component-cache() {
|
function _bash-it-component-cache-clean() {
|
||||||
local component="${1:-}"
|
local component="${1:-}"
|
||||||
local cache
|
local cache
|
||||||
local -a components=('aliases' 'plugins' 'completions')
|
local -a components=('aliases' 'plugins' 'completions')
|
||||||
if [[ -z "${component}" ]]; then
|
if [[ -z "${component}" ]]; then
|
||||||
for component in "${components[@]}"; do
|
for component in "${components[@]}"; do
|
||||||
_bash-it-clean-component-cache "${component}"
|
_bash-it-component-cache-clean "${component}"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
_bash-it-component-cache-file "${component}" cache
|
_bash-it-component-cache-file "${component}" cache
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue