Created
September 15, 2016 13:14
-
-
Save jammycakes/34c71119ef248f63eaa2239c110513f5 to your computer and use it in GitHub Desktop.
Bash command to open a program in a new window, detached from the console. Run dos <your command>
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
#! /bin/bash | |
function run_disowned() { | |
"$@" & disown | |
} | |
function dos() { | |
run_disowned "$@" 1>/dev/null 2>/dev/null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment