From 2d23c97d75e52b702e40377965590db611732af8 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 10 Mar 2022 12:09:27 -0500 Subject: .bashrc: Set terminal window name to last command --- .bashrc | 1 + 1 file changed, 1 insertion(+) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 07b9644..13654f0 100644 --- a/.bashrc +++ b/.bashrc @@ -131,6 +131,7 @@ docker-rootfs() { id=$(docker run --detach "$1" /bin/true) \ # https://til.simonwillison.net/bash/escaping-a-string # press ctrl+d after writing string to standard input shellquote() { printf '%q\n' "$(cat)"; } +trap 'echo -ne "\033]2;command: $(history 1 | shellquote)\007"' DEBUG # swallow swallow() { "$@" & disown; exit; } -- cgit v1.2.3