aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-03-10 12:09:27 -0500
committertdro <tdro@users.noreply.github.com>2022-03-10 12:09:27 -0500
commit2d23c97d75e52b702e40377965590db611732af8 (patch)
tree2184d3969240364b6066c73aa89bb3197fe9f9fd /.bashrc
parente0670762e4d62d0e17375c9e62ac184648125e38 (diff)
downloaddotfiles-2d23c97d75e52b702e40377965590db611732af8.tar.gz
dotfiles-2d23c97d75e52b702e40377965590db611732af8.tar.bz2
dotfiles-2d23c97d75e52b702e40377965590db611732af8.zip
.bashrc: Set terminal window name to last command
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc1
1 files changed, 1 insertions, 0 deletions
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; }