]> code.delx.au - dotfiles/commitdiff
bash: fix __vte_osc7 in terminal title
authorJames Bunton <jamesbunton@delx.net.au>
Sat, 2 Sep 2023 12:26:52 +0000 (22:26 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sat, 2 Sep 2023 12:27:19 +0000 (22:27 +1000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 89add425399f341f22d816842f741105408f9995..7a37f4925a240c1b46e13a540a7301d64d4d3fd2 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -311,6 +311,7 @@ PROMPT_COMMAND=prompt_command
 # bashrc to avoid running the trap on commands in the bashrc
 function print_title_exec {
     [ "$BASH_COMMAND" = "$PROMPT_COMMAND" ] && return
+    [ "$BASH_COMMAND" = "__vte_osc7" ] && return
 
     printf '\e]0;%s (%s)\a' \
         "$(tr -cd '[:graph:] ' <<< "$BASH_COMMAND")" \