diff --git a/lib/helpers.bash b/lib/helpers.bash index 93bf66dc83..3d765a692e 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -469,7 +469,7 @@ _bash-it-profile-save() { echo "" >> "$profile_path" echo "# $subdirectory" >> "$profile_path" for f in "${BASH_IT}/$subdirectory/available/"*.bash; do - _bash-it-process-component "$f" + _bash-it-determine-component-status-from-path "$f" if [ "$enabled" == "x" ]; then echo "$subdirectory $enabled_file_clean" >> "$profile_path" fi @@ -574,11 +574,11 @@ _bash-it-reload() { popd &> /dev/null || return } -_bash-it-process-component () +_bash-it-determine-component-status-from-path () { _about 'internal function used to process component name and check if its enabled' _param '1: full path to available component file' - _example '$ _bash-it-process-component "${BASH_IT}/plugins/available/git.plugin.bash' + _example '$ _bash-it-determine-component-status-from-path "${BASH_IT}/plugins/available/git.plugin.bash' # Check for both the old format without the load priority, and the extended format with the priority declare enabled_files enabled_file @@ -612,7 +612,7 @@ _bash-it-describe () printf "%-20s%-10s%s\n" "$column_header" 'Enabled?' 'Description' for f in "${BASH_IT}/$subdirectory/available/"*.bash do - _bash-it-process-component "$f" + _bash-it-determine-component-status-from-path "$f" printf "%-20s%-10s%s\n" "$enabled_file_clean" " [$enabled]" "$(cat $f | metafor about-$file_type)" done printf '\n%s\n' "to enable $preposition $file_type, do:"