From 496982f9b45d5dcba8a298575ceb0cf1c2884637 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 25 Oct 2019 15:06:15 -0500 Subject: [PATCH] Tweak $title display in .term/.sh. --- 2019-kvm-forum/4000-case-study-baseline.term | 2 ++ 2019-kvm-forum/bashrc | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/2019-kvm-forum/4000-case-study-baseline.term b/2019-kvm-forum/4000-case-study-baseline.term index 6828640..c5f84c8 100755 --- a/2019-kvm-forum/4000-case-study-baseline.term +++ b/2019-kvm-forum/4000-case-study-baseline.term @@ -13,5 +13,7 @@ remember 'cat ./convert' remember './convert zeromode=none' pushd $talkdir/fastzero.d >/dev/null +echo "Based on https://www.redhat.com/archives/libguestfs/2019-August/msg00322.html" +echo terminal popd >/dev/null diff --git a/2019-kvm-forum/bashrc b/2019-kvm-forum/bashrc index f526961..36e9c0a 100644 --- a/2019-kvm-forum/bashrc +++ b/2019-kvm-forum/bashrc @@ -5,9 +5,10 @@ if [ -f /etc/profile.d/colorls.sh ]; then . /etc/profile.d/colorls.sh; fi # Fancy prompt colours (see # https://wiki.archlinux.org/index.php/Color_Bash_Prompt) -promptcol='\e[0;32m' ;# colour for the prompt -commandcol='\e[1;31m' ;# colour for the typed command -outputcol='\e[0m' ;# colour for command output +titlecol=$'\e[1;30;47m' ;# colour for the title +promptcol=$'\e[0;32m' ;# colour for the prompt +commandcol=$'\e[1;31m' ;# colour for the typed command +outputcol=$'\e[0m' ;# colour for command output export PS1="\n\[$promptcol\]\$ \[$commandcol\]" @@ -16,4 +17,4 @@ trap 'echo -ne "$outputcol"' DEBUG # Load key bindings (if any). bind -f $talkdir/bindings -echo $title +printf %s\\n "$titlecol$title$outputcol" -- 1.8.3.1