Created
November 20, 2017 00:32
-
-
Save CoolOppo/b94d59b49f97899419ae9ca53a19abee to your computer and use it in GitHub Desktop.
Background function to run any given command in the background and disown it from the shell, hiding ALL output:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bkr () | |
{ | |
(nohup "$@" &>/dev/null &) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment