From 1f6cd971d69f8a5babba11432ce8407febe93259 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Thu, 23 Nov 2023 09:51:23 -0600 Subject: [PATCH] clean up liquidprompt prompt --- home/files/bash/bashrc | 1 - home/liquidprompt.nix | 60 ++++++++++++++++++++++-------------------- 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/home/files/bash/bashrc b/home/files/bash/bashrc index 31dcd03..226a9e8 100755 --- a/home/files/bash/bashrc +++ b/home/files/bash/bashrc @@ -150,7 +150,6 @@ then test -f "${HOME}/.bash_aliases" && . ${HOME}/.bash_aliases test -f "${HOME}/.bash_local" && . ${HOME}/.bash_local - test -f "${HOME}/.liquidprompt/liquidprompt" && . ${HOME}/.liquidprompt/liquidprompt file=$(\ls -1d /nix/store/*-$(\ls -1d /nix/store/*-liquidprompt-* | grep -v drv | awk -F- '{printf("%s-%s\n",$2,$3)}' | tail -n1) | tail -n1) test -f ${file}/bin/liquidprompt && . ${file}/bin/liquidprompt diff --git a/home/liquidprompt.nix b/home/liquidprompt.nix index 045cc94..b4deaaf 100644 --- a/home/liquidprompt.nix +++ b/home/liquidprompt.nix @@ -2,40 +2,44 @@ home.packages = with pkgs; [ liquidprompt ]; xdg.configFile."liquidpromptrc".text = '' source ~/.config/liquidprompt.theme - LP_BATTERY_THRESHOLD=100 - LP_LOAD_THRESHOLD=60 - LP_TEMP_THRESHOLD=60 - LP_ENABLE_SHORTEN_PATH=1 - LP_PATH_LENGTH=35 - LP_PATH_KEEP=2 - LP_HOSTNAME_ALWAYS=1 + LP_BATTERY_THRESHOLD=75 + LP_DISABLED_VCS_PATH="" + LP_ENABLE_BATT=1 + LP_ENABLE_BZR=0 + LP_ENABLE_DIRSTACK=0 + LP_ENABLE_FOSSIL=0 LP_ENABLE_FQDN=0 - LP_USER_ALWAYS=1 - LP_PERCENTS_ALWAYS=1 - LP_ENABLE_PERM=1 - LP_ENABLE_PROXY=1 + LP_ENABLE_GIT=1 + LP_ENABLE_HG=0 LP_ENABLE_JOBS=1 LP_ENABLE_LOAD=1 - LP_ENABLE_BATT=1 - LP_ENABLE_SUDO=0 - LP_ENABLE_VCS_ROOT=0 - LP_ENABLE_GIT=1 - LP_ENABLE_SVN=0 - LP_ENABLE_HG=0 - LP_ENABLE_FOSSIL=0 - LP_ENABLE_BZR=0 - LP_ENABLE_TIME=1 + LP_ENABLE_PERM=1 + LP_ENABLE_PROXY=0 LP_ENABLE_RUNTIME=1 - LP_TIME_FORMAT="%_I:%M %p" - LP_RUNTIME_THRESHOLD=2 - LP_ENABLE_VIRTUALENV=1 LP_ENABLE_SCLS=0 - LP_ENABLE_TEMP=0 - LP_TIME_ANALOG=0 - LP_ENABLE_TITLE=0 - LP_ENABLE_SCREEN_TITLE=0 + LP_ENABLE_SCREEN_TITLE=1 + LP_ENABLE_SHLVL=0 + LP_ENABLE_SHORTEN_PATH=1 LP_ENABLE_SSH_COLORS=0 - LP_DISABLED_VCS_PATH="" + LP_ENABLE_SUDO=0 + LP_ENABLE_SVN=0 + LP_ENABLE_TEMP=0 + LP_ENABLE_TIME=1 + LP_ENABLE_TITLE=0 + LP_ENABLE_VCS_ROOT=0 + LP_ENABLE_VIRTUALENV=1 + LP_HOSTNAME_ALWAYS=1 + LP_LOAD_THRESHOLD=60 + LP_PATH_KEEP=2 + LP_PATH_LENGTH=35 + LP_PERCENTS_ALWAYS=1 + LP_RUNTIME_THRESHOLD=2 + LP_TEMP_THRESHOLD=60 + LP_TIME_ANALOG=0 + LP_TIME_FORMAT="%_I:%M %p" + LP_USER_ALWAYS=1 + LOCAL_RCFILE=$HOME/.config/liquidpromptrc.local + [ -f "$LOCAL_RCFILE" ] && source "$LOCAL_RCFILE" ''; xdg.configFile."liquidprompt.theme".text = '' if [[ "$(locale -k LC_CTYPE | sed -n 's/^charmap="\(.*\)"/\1/p')" == *"UTF-8"* ]]; then