fix: raw string escaping
This commit is contained in:
parent
5c2ecff972
commit
453ddb4b06
1 changed files with 3 additions and 3 deletions
|
|
@ -15,14 +15,14 @@ const MAX_DEPTH: usize = 5;
|
|||
|
||||
fn setup_shell(code_root: &Path) {
|
||||
println!(
|
||||
r##"
|
||||
r#"
|
||||
h() {{
|
||||
_h_dir=$(command repo resolve --root "#{}" "$@")
|
||||
_h_dir=$(command repo resolve --root "{}" "$@")
|
||||
_h_ret=$?
|
||||
[ "$_h_dir" != "$PWD" ] && cd "$_h_dir"
|
||||
return $_h_ret
|
||||
}}
|
||||
"##,
|
||||
"#,
|
||||
code_root.display()
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue