Exit zsh, but leave running jobs open?

前端 未结 4 1018
温柔的废话
温柔的废话 2021-01-30 01:25

Just switched from bash to zsh.

In bash, background tasks continue running when the shell exits. For example here, dolphin continues running after the

4条回答
  •  野的像风
    2021-01-30 01:58

    Start the program with &!:

    dolphin &!
    

    The &! (or equivalently, &|) is a zsh-specific shortcut to both background and disown the process, such that exiting the shell will leave it running.

提交回复
热议问题