More comments

This commit is contained in:
Olivier Mengué 2012-08-21 07:51:40 +02:00
parent a673a2e9fd
commit c0d023b4ad

View File

@ -113,7 +113,11 @@ esac
# CONFIGURATION # # CONFIGURATION #
################# #################
# 1. Setup variables that can be used by the user: the "API" of liquidprompt
# for config/theme. Those variables are local to the function.
# In practice, this is only color variables.
# 2. Setup default values
# 3. Load the configuration
_lp_source_config() _lp_source_config()
{ {
@ -167,9 +171,8 @@ _lp_source_config()
unset _lp_ti_sgr0 _lp_ti_bold _lp_ti_setaf unset _lp_ti_sgr0 _lp_ti_bold _lp_ti_setaf
# Note: configuration is called _after_ colors declarations, because of themes.
# Default values # Default values (globals)
LP_BATTERY_THRESHOLD=${LP_BATTERY_THRESHOLD:-75} LP_BATTERY_THRESHOLD=${LP_BATTERY_THRESHOLD:-75}
LP_LOAD_THRESHOLD=${LP_LOAD_THRESHOLD:-60} LP_LOAD_THRESHOLD=${LP_LOAD_THRESHOLD:-60}
LP_PATH_LENGTH=${LP_PATH_LENGTH:-35} LP_PATH_LENGTH=${LP_PATH_LENGTH:-35}