mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
zsh cloning: save history so that it is up-to-date in cloned shell
This commit is contained in:
parent
8808a252ae
commit
6bbaf5f1cf
1 changed files with 2 additions and 0 deletions
|
|
@ -418,5 +418,7 @@ clone-in-kitty() {
|
|||
builtin print -nu "$_ksi_fd" -f '\eP@kitty-clone|%s:%s\e\\' "${chunk_num}" "${chunk}"
|
||||
chunk_num=$(($chunk_num+1))
|
||||
done
|
||||
# save history so it is available in new shell
|
||||
builtin fc -AI
|
||||
builtin print -nu "$_ksi_fd" '\eP@kitty-clone|\e\\'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue