diff --git a/.editorconfig b/.editorconfig index eb3256aa29..36c98e6eaa 100755 --- a/.editorconfig +++ b/.editorconfig @@ -25,7 +25,7 @@ binary_next_line = true # like -bn switch_case_indent = true # like -ci space_redirects = true # like -sr keep_padding = false # like -kp -function_next_line = true # like -fn +#function_next_line = true # like -fn end_of_line = lf charset = utf-8 trim_trailing_whitespace = true diff --git a/lib/utilities.bash b/lib/utilities.bash index 9f9e6b6075..6804ab6f5f 100644 --- a/lib/utilities.bash +++ b/lib/utilities.bash @@ -33,6 +33,13 @@ function _bash-it-get-component-type-from-path() { echo "${filename}" } +function _set-prefix-based-on-path() { + filename=$(_bash-it-get-component-name-from-path "$1") + extension=$(_bash-it-get-component-type-from-path "$1") + # shellcheck disable=SC2034 # expected + BASH_IT_LOG_PREFIX="$extension: $filename" +} + # This function searches an array for an exact match against the term passed # as the first argument to the function. This function exits as soon as # a match is found. diff --git a/themes/githelpers.theme.bash b/themes/githelpers.theme.bash old mode 100644 new mode 100755