Also save command history before cloning in bash

This commit is contained in:
Kovid Goyal 2022-04-22 23:40:59 +05:30
parent 6bbaf5f1cf
commit 37cdaea9ed
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -330,6 +330,8 @@ clone-in-kitty() {
builtin printf '\eP@kitty-clone|%s:%s\e\\' "${chunk_num}" "${chunk}"
chunk_num=$(($chunk_num+1))
done
# append current commands to history file
builtin history -a
builtin printf '\eP@kitty-clone|\e\\'
}
;;