Skip to content

Commit 0cee7ef

Browse files
committed
theme/gitline: cleanup
- set default `$POWERLINE_PROMPT`
1 parent bf69ee8 commit 0cee7ef

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

clean_files.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ themes/candy
161161
themes/command_duration.theme.bash
162162
themes/easy
163163
themes/essential
164+
themes/gitline
164165
themes/modern
165166
themes/norbu
166167
themes/pete

themes/gitline/gitline.theme.bash

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#!/usr/bin/env bash
2-
3-
. "$BASH_IT/themes/gitline/powerline.base.bash"
1+
# shellcheck shell=bash
2+
# shellcheck disable=SC2034 # Expected behavior for themes.
3+
# shellcheck source-path=SCRIPTDIR/../gitline
4+
source "${BASH_IT?}/themes/gitline/powerline.base.bash"
45

56
#For the logo(Uncomment if you want a logo before your name)
67
#PROMPT_DISTRO_LOGO="💻"
@@ -9,7 +10,7 @@ PROMPT_DISTRO_LOGO_COLORBG=52
910

1011
#Prompt Seperator Charactors
1112
PROMPT_CHAR=${POWERLINE_PROMPT_CHAR:=""}
12-
POWERLINE_LEFT_SEPARATOR=${POWERLINE_LEFT_SEPARATOR:=""}
13+
: "${POWERLINE_LEFT_SEPARATOR:=""}"
1314

1415
#USER INFO CHARACTERS
1516
USER_INFO_SSH_CHAR=${POWERLINE_USER_INFO_SSH_CHAR:=""}
@@ -54,18 +55,19 @@ LAST_STATUS_THEME_PROMPT_COLOR=52
5455
CLOCK_THEME_PROMPT_COLOR=240
5556

5657
#For Battery Plugin
57-
BATTERY_AC_CHAR=${BATTERY_AC_CHAR:=""}
58+
: "${BATTERY_AC_CHAR:=""}"
5859
BATTERY_STATUS_THEME_PROMPT_GOOD_COLOR=70
5960
BATTERY_STATUS_THEME_PROMPT_LOW_COLOR=208
6061
BATTERY_STATUS_THEME_PROMPT_CRITICAL_COLOR=160
6162

62-
THEME_CLOCK_FORMAT=${THEME_CLOCK_FORMAT:="%H:%M:%S"}
63+
: "${THEME_CLOCK_FORMAT:="%H:%M:%S"}"
6364

6465
IN_VIM_THEME_PROMPT_COLOR=245
6566
IN_VIM_THEME_PROMPT_TEXT="vim"
6667

6768
IN_TOOLBOX_THEME_PROMPT_COLOR=125
6869
IN_TOOLBOX_THEME_PROMPT_TEXT=""
6970

71+
: "${POWERLINE_PROMPT:="user_info scm python_venv ruby node cwd"}"
7072

7173
safe_append_prompt_command __powerline_prompt_command

0 commit comments

Comments
 (0)