# ctrl+z to foreground previously backgrounded tasks _zsh_cli_fg() { fg; } zle -N _zsh_cli_fg bindkey '^Z' _zsh_cli_fg