刚从 bash 切换到 zsh。
在 bash 中,后台任务在 shell 退出时继续运行:
$ dolphin .
^Z
[1]+  Stopped                 dolphin .
$ bg
[1]+ dolphin . &
$ exit
这就是我想要的默认行为。
相反,zsh 的行为是对在 exit上运行作业发出警告,如果再次运行 exit,则关闭它们。例如,在这里,当第二个 exit-命令实际退出 shell 时,dolphin被关闭:
 % dolphin .
^Z
zsh: suspended  dolphin .
% bg
[1]  + continued  dolphin .
% exit
zsh: you have running jobs.
% exit
我如何使 zsh 的默认行为在这里像 bash 一样?
 
                                
                             
                                
                             
                                
                            