Also save command history before cloning in bash
This commit is contained in:
parent
6bbaf5f1cf
commit
37cdaea9ed
@ -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…
x
Reference in New Issue
Block a user