feat: use pushd instead of cd

This commit is contained in:
Tim Schubert 2025-08-09 21:49:09 +02:00
parent 453ddb4b06
commit 7024c45a04
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -19,7 +19,7 @@ fn setup_shell(code_root: &Path) {
h() {{
_h_dir=$(command repo resolve --root "{}" "$@")
_h_ret=$?
[ "$_h_dir" != "$PWD" ] && cd "$_h_dir"
[ "$_h_dir" != "$PWD" ] && pushd "$_h_dir"
return $_h_ret
}}
"#,