mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Dont rely on env -0 for bash either
This commit is contained in:
parent
bde468594e
commit
e71b9091a3
3 changed files with 55 additions and 9 deletions
|
|
@ -276,7 +276,7 @@ case :$SHELLOPTS: in
|
|||
*:posix:*) ;;
|
||||
*)
|
||||
clone-in-kitty() {
|
||||
builtin local data="argv=${_ksi_prompt[argv]},cwd=$(builtin printf "%s" "$PWD" | builtin command base64),env=$(builtin command env -0 | builtin command base64)"
|
||||
builtin local data="argv=${_ksi_prompt[argv]},cwd=$(builtin printf "%s" "$PWD" | builtin command base64),envfmt=bash,env=$(builtin export | builtin command base64)"
|
||||
while :; do
|
||||
case "$1" in
|
||||
"") break;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue