From 19ebfa7534c9a0eac84a2eece5b398df15dbe519 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Tue, 17 Oct 2023 19:52:17 -0500 Subject: [PATCH] fix deactivate with existing PROMPT_COMMAND --- src/shell/bash.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shell/bash.rs b/src/shell/bash.rs index 7ff8529bd1..977f378c0c 100644 --- a/src/shell/bash.rs +++ b/src/shell/bash.rs @@ -52,6 +52,7 @@ impl Shell for Bash { fn deactivate(&self) -> String { formatdoc! {r#" + PROMPT_COMMAND="${{PROMPT_COMMAND//_rtx_hook;/}}" PROMPT_COMMAND="${{PROMPT_COMMAND//_rtx_hook/}}" unset _rtx_hook unset rtx