Quantcast
Channel: In zsh, how can I more quickly disown the foreground process? - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 3

In zsh, how can I more quickly disown the foreground process?

$
0
0

My method for disowning the foreground process takes too much effort.

Suppose I have a process in zsh's foreground. I want to disown it, so I can close the shell without the process being sent a SIGHUP.

At the moment, I start with Ctrl+z to background and pause the process, then

$ disown
disown: warning: job is suspended, use `kill -CONT -32240' to resume
$ kill -CONT -32240
$

then I can close the terminal.

How can I automate that? Ideally, I'd like to be able to press Ctrl+j or something to immediately disown the running process. Or second best, I'd want to be able to run a single command to both disown and SIGCONT the process once it's suspended.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images