mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
...
This commit is contained in:
parent
6b078c4267
commit
236dbd95c9
1 changed files with 2 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after
|
|||
end
|
||||
|
||||
|
||||
function clone-in-kitty -d "Clone the current shell session into a new kitty window"
|
||||
function clone-in-kitty -d "Clone the current fish session into a new kitty window"
|
||||
set --function data (printf "%s" "$PWD" | command base64)
|
||||
set -l env (command env -0 | command base64)
|
||||
set --function data "pid=$fish_pid,cwd=$data,env=$env"
|
||||
|
|
@ -126,7 +126,7 @@ function clone-in-kitty -d "Clone the current shell session into a new kitty win
|
|||
set --function chunk_num 0
|
||||
set --function data_len (builtin string length "$data")
|
||||
echo $data_len
|
||||
while test $pos -le $data_len;
|
||||
while builtin test $pos -le $data_len;
|
||||
set -l chunk (builtin string sub -s $pos -l 1024 $data)
|
||||
set --function pos (math $pos + 1024)
|
||||
builtin printf '\eP@kitty-clone|%s:%s\e\\' "$chunk_num" "$chunk" # '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue