liquidprompt: add as submodule and track config
This commit is contained in:
parent
593aa3e019
commit
d7c991f452
4 changed files with 189 additions and 0 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "liquidprompt"]
|
||||||
|
path = liquidprompt
|
||||||
|
url = https://github.com/nojhan/liquidprompt.git
|
1
.zshrc
1
.zshrc
|
@ -123,4 +123,5 @@ esac
|
||||||
if ! type "direnv" > /dev/null; then
|
if ! type "direnv" > /dev/null; then
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e /home/gshipunov/.nix-profile/etc/profile.d/nix.sh ]; then . /home/gshipunov/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
if [ -e /home/gshipunov/.nix-profile/etc/profile.d/nix.sh ]; then . /home/gshipunov/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
||||||
|
|
184
config/liquidpromptrc
Normal file
184
config/liquidpromptrc
Normal file
|
@ -0,0 +1,184 @@
|
||||||
|
|
||||||
|
####################################
|
||||||
|
# LIQUID PROMPT CONFIGURATION FILE #
|
||||||
|
####################################
|
||||||
|
|
||||||
|
# This example config file does not contain all possible config options, nor
|
||||||
|
# does it have detailed option descriptions. See the documentation for that:
|
||||||
|
# https://liquidprompt.readthedocs.io/en/stable/config.html
|
||||||
|
|
||||||
|
# If you want to use different themes and features,
|
||||||
|
# you can load the corresponding files here:
|
||||||
|
#source ~/.config/liquidprompt/nojhan.theme
|
||||||
|
#LP_PS1_FILE=~/.config/liquidprompt/nojhan.ps1
|
||||||
|
|
||||||
|
#############
|
||||||
|
# BEHAVIOUR #
|
||||||
|
#############
|
||||||
|
|
||||||
|
# Display the battery level in more urgent color when the level is below this threshold.
|
||||||
|
# Recommended value is 75
|
||||||
|
LP_BATTERY_THRESHOLD=75
|
||||||
|
|
||||||
|
# Display the load average over the past minute when above this threshold.
|
||||||
|
# The value is expressed in centiload per CPU. For example, when using the
|
||||||
|
# default value of 60, the load average will be displayed starting at:
|
||||||
|
# * 0.61 on a single-core machine, or
|
||||||
|
# * 1.22 on a dual-core machine, or
|
||||||
|
# * 2.44 on a quad-core machine, and so on.
|
||||||
|
# Recommended value is 60
|
||||||
|
LP_LOAD_THRESHOLD=60
|
||||||
|
|
||||||
|
# Display the temperature when the temperate is above this threshold (in
|
||||||
|
# degrees Celsius).
|
||||||
|
# Recommended value is 60
|
||||||
|
LP_TEMP_THRESHOLD=60
|
||||||
|
|
||||||
|
# Use the shorten path feature if the path is too long to fit in the prompt
|
||||||
|
# line.
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_SHORTEN_PATH=1
|
||||||
|
|
||||||
|
# The maximum percentage of the screen width used to display the path before
|
||||||
|
# removing the center portion of the path and replacing with '...'.
|
||||||
|
# Recommended value is 35
|
||||||
|
LP_PATH_LENGTH=35
|
||||||
|
|
||||||
|
# The number of directories (including '/') to keep at the beginning of a
|
||||||
|
# shortened path.
|
||||||
|
# Recommended value is 2
|
||||||
|
LP_PATH_KEEP=2
|
||||||
|
|
||||||
|
# Determine if the hostname should always be displayed, even if not connecting
|
||||||
|
# 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 fully qualified domain name (FQDN) instead of the short hostname when
|
||||||
|
# the hostname is displayed
|
||||||
|
LP_ENABLE_FQDN=0
|
||||||
|
|
||||||
|
# When to display the user name:
|
||||||
|
# 1: always display the user name
|
||||||
|
# 0: hide the logged user (always display different users)
|
||||||
|
# -1: never display the user name
|
||||||
|
# Default value is 1
|
||||||
|
LP_USER_ALWAYS=1
|
||||||
|
|
||||||
|
# Display the percentages of load/batteries along with their
|
||||||
|
# corresponding marks. Set to 0 to only print the colored marks.
|
||||||
|
# Defaults to 1 (display percentages)
|
||||||
|
LP_PERCENTS_ALWAYS=1
|
||||||
|
|
||||||
|
# Use the permissions feature and display a red ':' before the prompt to show
|
||||||
|
# when you don't have write permission to the current directory.
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_PERM=1
|
||||||
|
|
||||||
|
# Enable the proxy detection feature.
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_PROXY=1
|
||||||
|
|
||||||
|
# Enable the jobs feature.
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_JOBS=1
|
||||||
|
|
||||||
|
# Enable the detached sessions feature.
|
||||||
|
# Default value is 1
|
||||||
|
LP_ENABLE_DETACHED_SESSIONS=1
|
||||||
|
|
||||||
|
# Enable the load feature.
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_LOAD=1
|
||||||
|
|
||||||
|
# Enable the battery feature.
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_BATT=1
|
||||||
|
|
||||||
|
# Enable the 'sudo credentials' feature.
|
||||||
|
# Be warned that this may pollute the syslog if you don't have sudo
|
||||||
|
# credentials, and the sysadmin might hate you.
|
||||||
|
LP_ENABLE_SUDO=0
|
||||||
|
|
||||||
|
# Enable the directory stack support.
|
||||||
|
LP_ENABLE_DIRSTACK=0
|
||||||
|
|
||||||
|
# Enable the VCS features with the root account.
|
||||||
|
# Recommended value is 0
|
||||||
|
LP_ENABLE_VCS_ROOT=0
|
||||||
|
|
||||||
|
# Enable the Git special features.
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_GIT=1
|
||||||
|
|
||||||
|
# Enable the Subversion special features.
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_SVN=1
|
||||||
|
|
||||||
|
# Enable the Mercurial special features.
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_HG=1
|
||||||
|
|
||||||
|
# Enable the Fossil special features.
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_FOSSIL=1
|
||||||
|
|
||||||
|
# Enable the Bazaar special features.
|
||||||
|
# Recommanded value is 1
|
||||||
|
LP_ENABLE_BZR=1
|
||||||
|
|
||||||
|
# Show time of when the current prompt was displayed.
|
||||||
|
LP_ENABLE_TIME=0
|
||||||
|
|
||||||
|
# Show runtime of the previous command if over LP_RUNTIME_THRESHOLD
|
||||||
|
# Recommended value is 0
|
||||||
|
LP_ENABLE_RUNTIME=0
|
||||||
|
|
||||||
|
# Minimal runtime (in seconds) before the runtime will be displayed
|
||||||
|
# Recommended value is 2
|
||||||
|
LP_RUNTIME_THRESHOLD=2
|
||||||
|
|
||||||
|
# Ring the terminal bell if the runtime of the previous command exceeded
|
||||||
|
# LP_RUNTIME_BELL_THRESHOLD
|
||||||
|
# Recommended value is 0
|
||||||
|
LP_ENABLE_RUNTIME_BELL=0
|
||||||
|
|
||||||
|
# Minimal runtime (in seconds) before the terminal bell will be rung.
|
||||||
|
# Recommended value is 10
|
||||||
|
LP_RUNTIME_BELL_THRESHOLD=10
|
||||||
|
|
||||||
|
# Display the virtualenv that is currently activated, if any
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_VIRTUALENV=1
|
||||||
|
|
||||||
|
# Display the enabled software collections, if any
|
||||||
|
# Recommended value is 1
|
||||||
|
LP_ENABLE_SCLS=1
|
||||||
|
|
||||||
|
# Show highest system temperature
|
||||||
|
LP_ENABLE_TEMP=1
|
||||||
|
|
||||||
|
# When showing the time, use an analog clock instead of numeric values.
|
||||||
|
# Recommended value is 0
|
||||||
|
LP_TIME_ANALOG=0
|
||||||
|
|
||||||
|
# Use the prompt as the title of the terminal window
|
||||||
|
# Recommended value is 0
|
||||||
|
LP_ENABLE_TITLE=0
|
||||||
|
|
||||||
|
# Enable Title for screen, byobu, and tmux
|
||||||
|
LP_ENABLE_SCREEN_TITLE=0
|
||||||
|
|
||||||
|
# Use different colors for the different hosts you SSH to
|
||||||
|
LP_ENABLE_SSH_COLORS=1
|
||||||
|
|
||||||
|
# Show the error code of the last command if it was not 0
|
||||||
|
LP_ENABLE_ERROR=1
|
||||||
|
|
||||||
|
# Specify an array of absolute paths in which all vcs will be disabled.
|
||||||
|
# Ex: ("/root" "/home/me/large-remove-svn-repo")
|
||||||
|
LP_DISABLED_VCS_PATHS=()
|
||||||
|
|
||||||
|
# vim: set et sts=4 sw=4 tw=120 ft=sh:
|
1
liquidprompt
Submodule
1
liquidprompt
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 762018c441efad4a6ecc4d7e984c5c6eff2a7f5f
|
Loading…
Add table
Reference in a new issue