Skip to content

Instantly share code, notes, and snippets.

@jammycakes
Created September 15, 2016 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jammycakes/34c71119ef248f63eaa2239c110513f5 to your computer and use it in GitHub Desktop.
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>
#! /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