conf2/zsh/.oh-my-zsh/plugins/fancy-ctrl-z/fancy-ctrl-z.plugin.zsh

13 lines
187 B
Bash
Raw Normal View History

2019-01-12 15:47:23 +00:00
fancy-ctrl-z () {
if [[ $#BUFFER -eq 0 ]]; then
BUFFER="fg"
zle accept-line
2019-01-12 15:47:23 +00:00
else
zle push-input
zle clear-screen
2019-01-12 15:47:23 +00:00
fi
}
zle -N fancy-ctrl-z
bindkey '^Z' fancy-ctrl-z