diff --git a/src-tauri/src/ssh/session.rs b/src-tauri/src/ssh/session.rs index be45a28..3af25f1 100644 --- a/src-tauri/src/ssh/session.rs +++ b/src-tauri/src/ssh/session.rs @@ -165,9 +165,9 @@ impl SshService { { let osc7_hook = concat!( " stty -echo; ", - r#"__wraith_osc7() { printf '\e]7;file://localhost/%s\a' \"$(pwd | sed 's/ /%20/g')\"; }; "#, - r#"if [ -n "$ZSH_VERSION" ]; then precmd() { __wraith_osc7; }; "#, - r#"elif [ -n "$BASH_VERSION" ]; then PROMPT_COMMAND='__wraith_osc7'; fi; "#, + "__wraith_osc7() { printf '\\e]7;file://localhost/%s\\a' \"$(pwd | sed 's/ /%20/g')\"; }; ", + "if [ -n \"$ZSH_VERSION\" ]; then precmd() { __wraith_osc7; }; ", + "elif [ -n \"$BASH_VERSION\" ]; then PROMPT_COMMAND=__wraith_osc7; fi; ", "stty echo; clear; cd .\n" ); let h = handle.lock().await;