mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 11:04:41 +02:00
[shell/liquidpromt] copy from bebehei-dotfiles
This commit is contained in:
parent
d43921cf69
commit
1da0be6800
1 changed files with 20 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue