Last active
March 8, 2023 13:00
-
-
Save luluco250/7f38c1ab332153488f22c3b0eb32e0cf to your computer and use it in GitHub Desktop.
Shell scripts/functions to launch GUI apps without tying them to a terminal.
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
#!/usr/bin/env fish | |
function launch --wraps exec | |
sh -c "(exec $(string escape $argv | string join ' ') >/dev/null 2>&1 &)" | |
end |
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
#!/bin/sh | |
launch() { | |
(exec "$@" >/dev/null 2>&1 &) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment