Skip to content

Commit

Permalink
lib/colors: rename theme/colors
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Jan 28, 2022
1 parent 7e79212 commit 2a8d8ba
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions bash_it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ done
# Load theme, if a theme was set
if [[ -n "${BASH_IT_THEME}" ]]; then
_log_debug "Loading \"${BASH_IT_THEME}\" theme..."
# Load colors and helpers first so they can be used in base theme
BASH_IT_LOG_PREFIX="themes: colors: "
# shellcheck source=./themes/colors.theme.bash
source "${BASH_IT}/themes/colors.theme.bash"
BASH_IT_LOG_PREFIX="themes: githelpers: "
# shellcheck source=./themes/githelpers.theme.bash
source "${BASH_IT}/themes/githelpers.theme.bash"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/lib/log.bats
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bats

load ../test_helper
load ../../themes/colors.theme
load ../../lib/colors

load ../../lib/log
load ../../lib/helpers
Expand Down
2 changes: 1 addition & 1 deletion test/plugins/base.plugin.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ load ../../plugins/available/base.plugin
run myip
assert_success
declare -r mask_ip=$(echo $output | tr -s '[0-9]' '?')
[[ $mask_ip == 'Your public IP is: ?.?.?.?' ]]
[[ $mask_ip == 'Your public IP is:'*'?.?.?.?'* ]]
}

@test 'plugins base: pickfrom()' {
Expand Down
1 change: 1 addition & 0 deletions test/test_helper_libs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ load "${BASH_IT}/lib/utilities.bash"
load "${BASH_IT}/lib/helpers.bash"
load "${BASH_IT}/lib/search.bash"
load "${BASH_IT}/lib/preexec.bash"
load "${BASH_IT}/lib/colors.bash"
1 change: 0 additions & 1 deletion test/themes/base.theme.bats
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

load ../test_helper
load ../test_helper_libs
load ../../themes/colors.theme
load ../../themes/base.theme

@test 'themes base: battery_percentage should not exist' {
Expand Down

0 comments on commit 2a8d8ba

Please sign in to comment.