From bd81ec4c5849e9ae13105757d49f55fcb0c5b90d Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 11 Apr 2024 00:00:00 +0000 Subject: .bashrc: Set better term titles --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index c1310a0..9c430c0 100644 --- a/.bashrc +++ b/.bashrc @@ -128,7 +128,7 @@ docker-rootfs() { id=$(docker run --detach "$1" /bin/true) \ shellquote() { printf '%q\n' "$(cat)"; } # show window title of last command (https://stackoverflow.com/a/5080670) -trap 'echo -ne "\033]2;command: $PWD $(history 1 | sed "s/^[ ]*[0-9]*[ ]*//g")\007"' DEBUG +trap 'echo -ne "\033]2;term: $PWD $(history 1 | tr -s " " | cut -d " " -f 5-)\007"' DEBUG # swallow swallow() { "$@" & disown; exit; } -- cgit v1.2.3