diff options
author | tdro <tdro@users.noreply.github.com> | 2022-03-10 12:09:27 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2022-03-10 12:09:27 -0500 |
commit | 2d23c97d75e52b702e40377965590db611732af8 (patch) | |
tree | 2184d3969240364b6066c73aa89bb3197fe9f9fd /.bashrc | |
parent | e0670762e4d62d0e17375c9e62ac184648125e38 (diff) | |
download | dotfiles-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-- | .bashrc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |