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