Also save command history before cloning in bash
This commit is contained in:
parent
6bbaf5f1cf
commit
37cdaea9ed
1 changed files with 2 additions and 0 deletions
|
|
@ -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\\'
|
||||
}
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue