Use $PWD instead of pwd -P as we want the exact same cwd not the resolved one when cloning
This commit is contained in:
parent
c19e69855a
commit
e187110611
@ -515,7 +515,7 @@ def clone_and_launch(msg: str, window: Window) -> None:
|
||||
continue
|
||||
env[k] = v
|
||||
elif k == 'cwd':
|
||||
cwd = v.rstrip()
|
||||
cwd = v
|
||||
opts = parse_opts_for_clone(args)
|
||||
if cwd:
|
||||
opts.cwd = cwd
|
||||
|
||||
@ -356,7 +356,7 @@ _ksi_deferred_init() {
|
||||
}
|
||||
|
||||
clone-in-kitty() {
|
||||
builtin local data="pid=$$,cwd=$(builtin pwd -P | builtin command base64),env=$(builtin command env -0 | builtin command base64)"
|
||||
builtin local data="pid=$$,cwd=$(builtin printf "%s" "$PWD" | builtin command base64),env=$(builtin command env -0 | builtin command base64)"
|
||||
while :; do
|
||||
case "$1" in
|
||||
"") break;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user