From c0d023b4ad2a9ef2c5c8c448cb5f4ccae27addf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 21 Aug 2012 07:51:40 +0200 Subject: [PATCH] More comments --- liquidprompt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/liquidprompt b/liquidprompt index f15100f..c74b574 100755 --- a/liquidprompt +++ b/liquidprompt @@ -113,7 +113,11 @@ esac # 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() { @@ -167,9 +171,8 @@ _lp_source_config() 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_LOAD_THRESHOLD=${LP_LOAD_THRESHOLD:-60} LP_PATH_LENGTH=${LP_PATH_LENGTH:-35}