aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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; }