Skip to content

Commit

Permalink
fix deactivate with existing PROMPT_COMMAND
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Oct 18, 2023
1 parent 2cebe1e commit 19ebfa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shell/bash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19ebfa7

Please sign in to comment.