[shell/liquidpromt] copy from bebehei-dotfiles

This commit is contained in:
Felix Buehler 2020-11-29 22:50:35 +01:00
parent d43921cf69
commit 1da0be6800

View file

@ -1,18 +1,23 @@
#!/bin/sh
#LP_ENABLE_RUNTIME=1
LP_ENABLE_TITLE=1
LP_ENABLE_SSH_COLORS=1
LP_ENABLE_VCS_ROOT=1
LP_DISABLED_VCS_PATH=""
LP_ENABLE_TEMP=0
LP_ENABLE_BATT=0
LP_ENABLE_SVN=0
LP_ENABLE_HG=0
LP_ENABLE_BZR=0
LP_ENABLE_FOSSIL=0
LP_ENABLE_SUDO=1
if [ -z "${IN_NIX_SHELL}" ]; then
LP_ENABLE_TITLE=1
LP_ENABLE_SSH_COLORS=1
LP_ENABLE_VCS_ROOT=1
LP_DISABLED_VCS_PATH=""
LP_ENABLE_TEMP=0
LP_ENABLE_BATT=0
LP_ENABLE_SUDO=1
LP_ENABLE_LOAD=1
# if in git folder, the prompt takes very long to rebuild
mountpoint $HOME 2> /dev/null > /dev/null && LP_DISABLED_VCS_PATH="$HOME"
source ~/.liquidprompt/liquidprompt
# Show the time for commands executing longer than five seconds
LP_ENABLE_RUNTIME=1
LP_RUNTIME_THRESHOLD=5
# Ring the bell after termination for commands running longer than a minute
# It's likely that I switched away in the meantime
LP_ENABLE_RUNTIME_BELL=1
LP_ENABLE_RUNTIME_BELL_THRESHOLD=60
source ~/.liquidprompt/liquidprompt
fi