In zsh, I want to send every process to background so that I can continue typing in the terminal if a process takes longer than I expected. Instead of having to write & at the end of every command or having to do Ctrl + Z to freeze it and bg to send it to background. Also I want the process to continue if I close the terminal, so I want to disown it. Can this be done by default with some zsh setting?

Heres a good response on SO:

Having a global keybind to disown the foreground process is impossible: Keystrokes are received by the foreground process, not by the shell. You need to first suspend it with Ctrl+z if you want to disown it.

However, turns out there’s a zsh option to speed up disowning then continuing: With setopt AUTO_CONTINUE, disown will automatically also send SIGCONT.

So you can get it down to C-z disown.

Sounds like you want termux

Ask specific questions about how to code something in sh, bash, zsh, etc

General bash discussion on

Create Post From:

  • 0 users online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 4 users / 6 months
  • 1 subscriber
  • 5 Posts
  • Modlog