Skip to content

Commit

Permalink
theme/gitline: cleanup
Browse files Browse the repository at this point in the history
- set default `$POWERLINE_PROMPT`
  • Loading branch information
gaelicWizard committed Jan 26, 2022
1 parent 142ce6c commit ffffc32
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions clean_files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ themes/candy
themes/command_duration.theme.bash
themes/easy
themes/essential
themes/gitline
themes/modern
themes/norbu
themes/pete
Expand Down
14 changes: 8 additions & 6 deletions themes/gitline/gitline.theme.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

. "$BASH_IT/themes/gitline/powerline.base.bash"
# shellcheck shell=bash
# shellcheck disable=SC2034 # Expected behavior for themes.
# shellcheck source-path=SCRIPTDIR/../gitline
source "${BASH_IT?}/themes/gitline/powerline.base.bash"

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

#Prompt Seperator Charactors
PROMPT_CHAR=${POWERLINE_PROMPT_CHAR:=""}
POWERLINE_LEFT_SEPARATOR=${POWERLINE_LEFT_SEPARATOR:=""}
: "${POWERLINE_LEFT_SEPARATOR:=""}"

#USER INFO CHARACTERS
USER_INFO_SSH_CHAR=${POWERLINE_USER_INFO_SSH_CHAR:=""}
Expand Down Expand Up @@ -54,18 +55,19 @@ LAST_STATUS_THEME_PROMPT_COLOR=52
CLOCK_THEME_PROMPT_COLOR=240

#For Battery Plugin
BATTERY_AC_CHAR=${BATTERY_AC_CHAR:=""}
: "${BATTERY_AC_CHAR:=""}"
BATTERY_STATUS_THEME_PROMPT_GOOD_COLOR=70
BATTERY_STATUS_THEME_PROMPT_LOW_COLOR=208
BATTERY_STATUS_THEME_PROMPT_CRITICAL_COLOR=160

THEME_CLOCK_FORMAT=${THEME_CLOCK_FORMAT:="%H:%M:%S"}
: "${THEME_CLOCK_FORMAT:="%H:%M:%S"}"

IN_VIM_THEME_PROMPT_COLOR=245
IN_VIM_THEME_PROMPT_TEXT="vim"

IN_TOOLBOX_THEME_PROMPT_COLOR=125
IN_TOOLBOX_THEME_PROMPT_TEXT=""

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

safe_append_prompt_command __powerline_prompt_command

0 comments on commit ffffc32

Please sign in to comment.