1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-16 15:36:51 +00:00
dotfiles/.zsh/func.zsh
2021-06-06 19:24:35 +02:00

10 lines
201 B
Bash

# Turn control+z into a toggle switch
ctrlz() {
if [[ $#BUFFER == 0 ]]; then
fg >/dev/null 2>&1 && zle redisplay
else
zle push-input
fi
}
zle -N ctrlz
bindkey '^Z' ctrlz