mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-20 20:22:10 +00:00
Dont define clone-in-kitty in POSIX mode
POSIX mode doesnt allow - in identifiers
This commit is contained in:
parent
d0c0b01724
commit
88d597f6b2
1 changed files with 6 additions and 0 deletions
|
|
@ -269,6 +269,9 @@ _ksi_main() {
|
|||
_ksi_main
|
||||
builtin unset -f _ksi_main
|
||||
|
||||
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)"
|
||||
while :; do
|
||||
|
|
@ -289,3 +292,6 @@ clone-in-kitty() {
|
|||
done
|
||||
builtin printf '\eP@kitty-clone|\e\\'
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue