From 0b3e8219974b237fdc35838154a3a39043ea37c7 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 19 Sep 2020 16:21:51 +0300 Subject: drop(bashrc): drop obsolete taskwarrior, QL setup from PS1 --- bashrc | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index fcf0991..cae83f0 100644 --- a/bashrc +++ b/bashrc @@ -50,24 +50,6 @@ termattr() # Collect info to show in $PS1 -taskwarrior_context() -{ - if command -v task > /dev/null && [ -e "$HOME/.task" ] - then - task context list | awk '$NF == "yes" { print $1 }' - fi -} - - -# Context for git and Debian packging: QvarnLabs? -QL() -{ - case "$DEBEMAIL" in - *@qvarnlabs.com) printf "[QL:$OS_PROJECT_SHORTNAME] " ;; - esac -} - - find_git_root() { ( @@ -147,9 +129,6 @@ wrap_if_nonempty() define_ps1() { - wrap_if_nonempty "$(taskwarrior_context)" "$(termattr red)" "$(termattr normal) " - wrap_if_nonempty "$(QL)" "$(termattr bold red)" "$(termattr normal)" - termattr bold blue date +%H:%M | tr -d '\n' local hostname="$(hostname)" -- cgit v1.2.1