Prior to this change, when committing this line to history
echo "hello\"world"
zsh will record this line in history instead:
echo "hello"world"
because the \" is processed by print.
Correct it by print in raw mode.
Signed-off-by: Doan Tran Cong Danh <congdanhqx@gmail.com>
# add a command line to the shells history without executing it
function commit-to-history () {
# add a command line to the shells history without executing it
function commit-to-history () {
zle send-break
}
zle -N commit-to-history
zle send-break
}
zle -N commit-to-history