update liquidprompt

This commit is contained in:
Gabriel Ebner 2016-07-24 13:55:18 +02:00
parent f6fd1209ac
commit ccf5adaca0
4 changed files with 30 additions and 16 deletions

@ -17,6 +17,7 @@
# LP_ERR last error code # LP_ERR last error code
# LP_MARK prompt mark # LP_MARK prompt mark
# LP_TIME current time # LP_TIME current time
# LP_TTYN number of current terminal (useful in title for quick switching)
# LP_RUNTIME runtime of last command # LP_RUNTIME runtime of last command
# LP_MARK_PREFIX user-defined prompt mark prefix (helpful if you want 2-line prompts) # 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) # LP_PS1_PREFIX user-defined general-purpose prefix (default set a generic prompt as the window title)

@ -73,6 +73,7 @@ LP_COLOR_ERR="$PURPLE"
# Prompt mark # Prompt mark
LP_COLOR_MARK="$BOLD" # as user LP_COLOR_MARK="$BOLD" # as user
LP_COLOR_MARK_ROOT="$BOLD_RED" # as root LP_COLOR_MARK_ROOT="$BOLD_RED" # as root
LP_COLOR_MARK_SUDO="$BOLD_RED" # when sudo credentials are cached
# Current user # Current user
LP_COLOR_USER_LOGGED="" # user who logged in 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 LP_COLOR_NOWRITE="$RED" # do not have write permission
# VCS # VCS
LP_COLOR_UP="$GREEN" # repository is up to date / a push have been made 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="$YELLOW" # some commits have not been pushed
LP_COLOR_CHANGES="$RED" # there is some changes to commit LP_COLOR_COMMITS_BEHIND="$BOLD_RED" # some commits have not been pushed
LP_COLOR_DIFF="$PURPLE" # number of lines impacted by current changes LP_COLOR_CHANGES="$RED" # there is some changes to commit
LP_COLOR_DIFF="$PURPLE" # number of lines impacted by current changes
# Battery # Battery
LP_COLOR_CHARGING_ABOVE="$GREEN" # charging and above threshold LP_COLOR_CHARGING_ABOVE="$GREEN" # charging and above threshold
@ -118,17 +120,19 @@ LP_COLOR_RUNTIME="$YELLOW"
# nix-shell indicator # nix-shell indicator
LP_COLOR_NIX_SHELL="$YELLOW" 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) # Range from 0 (nothing special) to 9 (alert)
LP_COLORMAP_0="" LP_COLORMAP=(
LP_COLORMAP_1="$GREEN" ""
LP_COLORMAP_2="$BOLD_GREEN" "$GREEN"
LP_COLORMAP_3="$YELLOW" "$BOLD_GREEN"
LP_COLORMAP_4="$BOLD_YELLOW" "$YELLOW"
LP_COLORMAP_5="$RED" "$BOLD_YELLOW"
LP_COLORMAP_6="$BOLD_RED" "$RED"
LP_COLORMAP_7="$WARN_RED" "$BOLD_RED"
LP_COLORMAP_8="$CRIT_RED" "$WARN_RED"
LP_COLORMAP_9="$DANGER_RED" "$CRIT_RED"
"$DANGER_RED"
)
# vim: set et sts=4 sw=4 tw=120 ft=sh: # vim: set et sts=4 sw=4 tw=120 ft=sh:

@ -1 +1 @@
Subproject commit def86eba38703dd69e655a77ae610923e9a19051 Subproject commit 488bb5975db9fa8be0b795019f0b6d99ec792f50

@ -35,8 +35,12 @@ LP_PATH_KEEP=2
# Do you want to display the hostname, even if not connected through network? # Do you want to display the hostname, even if not connected through network?
# Defaults to 0 (do not display hostname when locally connected) # 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 always see the hostname
# set to -1 if you want to never see the hostname
LP_HOSTNAME_ALWAYS=0 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? # 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) # Defaults to 1 (always display the user)
# set to 0 if you want to hide the logged user (it will always display different users) # 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 # Recommended value is 1
LP_ENABLE_BATT=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? # Do you want to use VCS features with the root account?
# Recommended value is 0 # Recommended value is 0
LP_ENABLE_VCS_ROOT=0 LP_ENABLE_VCS_ROOT=0