dotfiles/dot_oh-my-zsh/plugins/fancy-ctrl-z/fancy-ctrl-z.plugin.zsh
2023-01-30 14:28:59 +01:00

12 lines
196 B
Bash

fancy-ctrl-z () {
if [[ $#BUFFER -eq 0 ]]; then
BUFFER="fg"
zle accept-line -w
else
zle push-input -w
zle clear-screen -w
fi
}
zle -N fancy-ctrl-z
bindkey '^Z' fancy-ctrl-z