Skip to content

Instantly share code, notes, and snippets.

@CoolOppo
Created December 31, 2014 00:53
Show Gist options
  • Save CoolOppo/fa6083de534ea8f2e43b to your computer and use it in GitHub Desktop.
Save CoolOppo/fa6083de534ea8f2e43b to your computer and use it in GitHub Desktop.
Backgrounds a command, disowns it, and hides all of its output
# Background function to run any given command in the background and
# disown it from the shell, hiding ALL output:
bkr ()
{
(nohup "$@" &>/dev/null &)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment