Parcourir la source

Added liquidprompt

PONSARD François il y a 7 ans
Parent
commit
3218b78807
3 fichiers modifiés avec 177 ajouts et 0 suppressions
  1. 11 0
      .bashrc
  2. 165 0
      .liquidpromptrc
  3. 1 0
      .subsys/liquidprompt

+ 11 - 0
.bashrc

@@ -0,0 +1,11 @@
+# to be append to .bashrc
+[[ $- = *i* ]] && source ~/.subsys/liquidprompt/liquidprompt
+
+alias Gpull="git pull"
+alias Gpush="git push"
+alias Gadd="git add --all"
+alias Gcommit="git commit -S -am"
+alias rdp="xfreerdp  +fonts +aero +menu-anims +smart-sizing +compression +clipboard +window-drag /w:1280 /h:720 "
+
+source $HOME/go/goenv.rc
+

+ 165 - 0
.liquidpromptrc

@@ -0,0 +1,165 @@
+
+####################################
+# LIQUID PROMPT CONFIGURATION FILE #
+####################################
+
+# 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 when the level is below this threshold.
+# Recommended value is 75
+LP_BATTERY_THRESHOLD=75
+
+# Display the load average when the load is above this threshold.
+# 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
+
+# Always display the user name, even if the user is the same as the one logged
+# in.
+# Defaults to 1 (always display the user name)
+# set to 0 if you want to hide the logged user (it will always display different
+# users)
+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 load feature.
+# Recommended value is 1
+LP_ENABLE_LOAD=1
+
+# Enable the battery feature.
+# Recommended value is 1
+LP_ENABLE_BATT=2
+
+# Enable 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
+
+# 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=0
+
+# Enable the Mercurial special features.
+# Recommended value is 1
+LP_ENABLE_HG=0
+
+# Enable the Fossil special features.
+# Recommended value is 1
+LP_ENABLE_FOSSIL=0
+
+# Enable the Bazaar special features.
+# Recommanded value is 1
+LP_ENABLE_BZR=0
+
+# Show time of when the current prompt was displayed. (Must be enabled and
+# disabled in the config file and not after liquidprompt has already been
+# sourced.)
+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
+
+# 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 average system temperature
+LP_ENABLE_TEMP=1
+
+# When showing the time, use an analog clock instead of numeric values.
+# The analog clock is "accurate" to the nearest half hour.
+# You must have a unicode-capable terminal and a font with the "CLOCK"
+# characters.
+# Recommended value is 0
+LP_TIME_ANALOG=0
+
+# Use the prompt as the title of the terminal window
+# The content is not customizable, the implementation is very basic,
+# and this may not work properly on exotic terminals, thus the
+# recommended value is 0
+# See LP_TITLE_OPEN and LP_TITLE_CLOSE to change escape characters to adapt this
+# feature to your specific terminal.
+LP_ENABLE_TITLE=1
+
+# Enable Title for screen and byobu
+LP_ENABLE_SCREEN_TITLE=1
+
+# Use different colors for the different hosts you SSH to
+LP_ENABLE_SSH_COLORS=1
+
+# Specify a list of complete and colon (":") separated paths in which, all vcs
+# will be disabled
+LP_DISABLED_VCS_PATH=""
+
+# vim: set et sts=4 sw=4 tw=120 ft=sh:

+ 1 - 0
.subsys/liquidprompt

@@ -0,0 +1 @@
+Subproject commit 9c80396021a8106bfaeade9a1ea51b85152e951d