lib/theme: disable THEME_CHECK_SUDO
Move `$THEME_CHECK_SUDO` to `lib/them`, and set it to `false` instead of `true`.pull/2041/head
parent
973a1f9b40
commit
21942f6275
|
|
@ -26,7 +26,9 @@ SCM_THEME_CURRENT_USER_SUFFIX=''
|
||||||
SCM_THEME_CHAR_PREFIX=''
|
SCM_THEME_CHAR_PREFIX=''
|
||||||
SCM_THEME_CHAR_SUFFIX=''
|
SCM_THEME_CHAR_SUFFIX=''
|
||||||
|
|
||||||
THEME_BATTERY_PERCENTAGE_CHECK=${THEME_BATTERY_PERCENTAGE_CHECK:=true}
|
# Define this here so it can be used by all of the themes
|
||||||
|
: "${THEME_CHECK_SUDO:=false}"
|
||||||
|
: "${THEME_BATTERY_PERCENTAGE_CHECK:=true}"
|
||||||
|
|
||||||
SCM_GIT_SHOW_DETAILS=${SCM_GIT_SHOW_DETAILS:=true}
|
SCM_GIT_SHOW_DETAILS=${SCM_GIT_SHOW_DETAILS:=true}
|
||||||
SCM_GIT_SHOW_REMOTE_INFO=${SCM_GIT_SHOW_REMOTE_INFO:=auto}
|
SCM_GIT_SHOW_REMOTE_INFO=${SCM_GIT_SHOW_REMOTE_INFO:=auto}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
# Sudo check after every command
|
|
||||||
THEME_CHECK_SUDO=${THEME_CHECK_SUDO:=true}
|
|
||||||
|
|
||||||
#To set color for foreground and background
|
#To set color for foreground and background
|
||||||
function set_color {
|
function set_color {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
# shellcheck disable=SC2034 # Expected behavior for themes.
|
# shellcheck disable=SC2034 # Expected behavior for themes.
|
||||||
|
|
||||||
# Define this here so it can be used by all of the Powerline themes
|
|
||||||
THEME_CHECK_SUDO=${THEME_CHECK_SUDO:=true}
|
|
||||||
|
|
||||||
function set_color() {
|
function set_color() {
|
||||||
local fg='' bg=''
|
local fg='' bg=''
|
||||||
if [[ "${1:-}" != "-" ]]; then
|
if [[ "${1:-}" != "-" ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue