diff --git a/liquid.ps1 b/liquid.ps1 index 8ecafca..99c8155 100644 --- a/liquid.ps1 +++ b/liquid.ps1 @@ -17,6 +17,7 @@ # LP_ERR last error code # LP_MARK prompt mark # LP_TIME current time +# LP_TTYN number of current terminal (useful in title for quick switching) # LP_RUNTIME runtime of last command # LP_MARK_PREFIX user-defined prompt mark prefix (helpful if you want 2-line prompts) # LP_PS1_PREFIX user-defined general-purpose prefix (default set a generic prompt as the window title) diff --git a/liquid.theme b/liquid.theme index 69fac27..18ae99a 100644 --- a/liquid.theme +++ b/liquid.theme @@ -73,6 +73,7 @@ LP_COLOR_ERR="$PURPLE" # Prompt mark LP_COLOR_MARK="$BOLD" # as user LP_COLOR_MARK_ROOT="$BOLD_RED" # as root +LP_COLOR_MARK_SUDO="$BOLD_RED" # when sudo credentials are cached # Current user LP_COLOR_USER_LOGGED="" # user who logged in @@ -92,10 +93,11 @@ LP_COLOR_WRITE="$GREEN" # have write permission LP_COLOR_NOWRITE="$RED" # do not have write permission # VCS -LP_COLOR_UP="$GREEN" # repository is up to date / a push have been made -LP_COLOR_COMMITS="$YELLOW" # some commits have not been pushed -LP_COLOR_CHANGES="$RED" # there is some changes to commit -LP_COLOR_DIFF="$PURPLE" # number of lines impacted by current changes +LP_COLOR_UP="$GREEN" # repository is up to date / a push have been made +LP_COLOR_COMMITS="$YELLOW" # some commits have not been pushed +LP_COLOR_COMMITS_BEHIND="$BOLD_RED" # some commits have not been pushed +LP_COLOR_CHANGES="$RED" # there is some changes to commit +LP_COLOR_DIFF="$PURPLE" # number of lines impacted by current changes # Battery LP_COLOR_CHARGING_ABOVE="$GREEN" # charging and above threshold @@ -118,17 +120,19 @@ LP_COLOR_RUNTIME="$YELLOW" # nix-shell indicator LP_COLOR_NIX_SHELL="$YELLOW" -# Color maps (battery and load levels) +# Color map (for battery and load levels, and temperature) # Range from 0 (nothing special) to 9 (alert) -LP_COLORMAP_0="" -LP_COLORMAP_1="$GREEN" -LP_COLORMAP_2="$BOLD_GREEN" -LP_COLORMAP_3="$YELLOW" -LP_COLORMAP_4="$BOLD_YELLOW" -LP_COLORMAP_5="$RED" -LP_COLORMAP_6="$BOLD_RED" -LP_COLORMAP_7="$WARN_RED" -LP_COLORMAP_8="$CRIT_RED" -LP_COLORMAP_9="$DANGER_RED" +LP_COLORMAP=( + "" + "$GREEN" + "$BOLD_GREEN" + "$YELLOW" + "$BOLD_YELLOW" + "$RED" + "$BOLD_RED" + "$WARN_RED" + "$CRIT_RED" + "$DANGER_RED" +) # vim: set et sts=4 sw=4 tw=120 ft=sh: diff --git a/liquidprompt b/liquidprompt index def86eb..488bb59 160000 --- a/liquidprompt +++ b/liquidprompt @@ -1 +1 @@ -Subproject commit def86eba38703dd69e655a77ae610923e9a19051 +Subproject commit 488bb5975db9fa8be0b795019f0b6d99ec792f50 diff --git a/liquidpromptrc b/liquidpromptrc index ccbec74..211afcc 100644 --- a/liquidpromptrc +++ b/liquidpromptrc @@ -35,8 +35,12 @@ LP_PATH_KEEP=2 # Do you want to display the hostname, even if not connected through network? # Defaults to 0 (do not display hostname when locally connected) # set to 1 if you want to always see the hostname +# set to -1 if you want to never see the hostname LP_HOSTNAME_ALWAYS=0 +# Use the FQDN instead of the short hostname if the hostname is displayed +LP_ENABLE_FQDN=0 + # Do you want to display the user, even if the user is the same as the one logged in? # Defaults to 1 (always display the user) # set to 0 if you want to hide the logged user (it will always display different users) @@ -71,6 +75,11 @@ LP_ENABLE_LOAD=1 # Recommended value is 1 LP_ENABLE_BATT=1 +# Do you want to use the 'sudo credentials' feature? +# Be warned that this may pollute the syslog if you don't have sudo +# credentials, and the sysadmin will hate you. +LP_ENABLE_SUDO=0 + # Do you want to use VCS features with the root account? # Recommended value is 0 LP_ENABLE_VCS_ROOT=0