-
-
Save qntmpkts/bc4956777ca97a01b355f719e822b99e to your computer and use it in GitHub Desktop.
Place this in your path to reliably launch any program from terminal into the background
This file contains hidden or 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
#!/usr/bin/env sh | |
if test -t 1; then | |
exec 1>/dev/null | |
fi; | |
if test -t 2; then | |
exec 2>/dev/null | |
fi; | |
"$@" &; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment