mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Also save command history before cloning in bash
This commit is contained in:
@@ -330,6 +330,8 @@ clone-in-kitty() {
|
|||||||
builtin printf '\eP@kitty-clone|%s:%s\e\\' "${chunk_num}" "${chunk}"
|
builtin printf '\eP@kitty-clone|%s:%s\e\\' "${chunk_num}" "${chunk}"
|
||||||
chunk_num=$(($chunk_num+1))
|
chunk_num=$(($chunk_num+1))
|
||||||
done
|
done
|
||||||
|
# append current commands to history file
|
||||||
|
builtin history -a
|
||||||
builtin printf '\eP@kitty-clone|\e\\'
|
builtin printf '\eP@kitty-clone|\e\\'
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user