lpr/liquidpromptrc-dist
François Schmidts 21808bb5e2 trusting default shell colors
supressing config option in configuration file
2012-08-14 00:56:27 +02:00

47 lines
1.2 KiB
Bash

####################################
# LIQUID PROMPT CONFIGURATION FILE #
####################################
# Maximal value under which the battery level is displayed
# Recommended value is 75
LP_BATTERY_THRESHOLD=75
# Minimal value after which the load average is displayed
# Recommended value is 60
LP_LOAD_THRESHOLD=60
# The maximum percentage of the screen width used to display the path
# Recommended value is 35
LP_PATH_LENGTH=35
# How many directories to keep at the beginning of a shortened path
# Recommended value is 2
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 localy connected)
# set to 1 if you want to always see the hostname
LP_HOSTNAME_ALWAYS=0
# If charset is UTF-8
if [[ "$(locale -k LC_CTYPE | sed -n 's/^charmap="\(.*\)"/\1/p')" == *"UTF-8"* ]] ; then
LP_BATTERY_MARK="⌁"
LP_ADAPTER_MARK="⏚"
LP_LOAD_MARK="⌂"
LP_PROXY_MARK="↥"
LP_GIT_MARK="±"
LP_MERCURIAL_MARK="☿"
LP_SUBVERSION_MARK="‡"
else
LP_BATTERY_MARK="b"
LP_ADAPTER_MARK="p"
LP_LOAD_MARK="c"
LP_PROXY_MARK="^"
LP_GIT_MARK="+"
LP_MERCURIAL_MARK="m"
LP_SUBVERSION_MARK="="
fi
# vim: set ts=4 sw=4 tw=120 ft=sh: