Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix deactivate with existing PROMPT_COMMAND #949

Merged
merged 1 commit into from
Oct 20, 2023
Merged

fix deactivate with existing PROMPT_COMMAND #949

merged 1 commit into from
Oct 20, 2023

Conversation

jdx
Copy link
Owner

@jdx jdx commented Oct 18, 2023

Fixes #920

@@ -52,6 +52,7 @@ impl Shell for Bash {

fn deactivate(&self) -> String {
formatdoc! {r#"
PROMPT_COMMAND="${{PROMPT_COMMAND//_rtx_hook;/}}"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this maybe isn't the cleanest but I couldn't figure out a simpler way off the top of my head

@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (2cebe1e) 87.39% compared to head (ddbd4df) 87.39%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #949   +/-   ##
=======================================
  Coverage   87.39%   87.39%           
=======================================
  Files         132      132           
  Lines       11598    11599    +1     
=======================================
+ Hits        10136    10137    +1     
  Misses       1462     1462           
Files Coverage Δ
src/shell/bash.rs 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jdx jdx merged commit a2fa00d into main Oct 20, 2023
17 checks passed
@jdx jdx deleted the deactivate branch October 20, 2023 19:18
jdx pushed a commit that referenced this pull request Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rtx deactivate: syntax error near unexpected token `;'
1 participant