From: James Bunton Date: Sat, 2 Sep 2023 12:26:52 +0000 (+1000) Subject: bash: fix __vte_osc7 in terminal title X-Git-Url: https://code.delx.au/dotfiles/commitdiff_plain/5e6c4dba9b9c9274f120a8c3c6f4277954a3161e bash: fix __vte_osc7 in terminal title --- diff --git a/.bashrc b/.bashrc index 89add42..7a37f49 100644 --- 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")" \