summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-09-19 16:21:51 +0300
committerLars Wirzenius <liw@liw.fi>2020-09-19 16:21:51 +0300
commit0b3e8219974b237fdc35838154a3a39043ea37c7 (patch)
tree73a032be3122d80afde89fc3ce8ecdb55a56fa2a /bashrc
parent61179e83fc8d3a5d73bbaaaef35e3f32d2ab22b3 (diff)
downloadliw-dot-files-0b3e8219974b237fdc35838154a3a39043ea37c7.tar.gz
drop(bashrc): drop obsolete taskwarrior, QL setup from PS1
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc21
1 files changed, 0 insertions, 21 deletions
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)"