}
# echo args then run
m() { printf "%s\n" "$*"; "$@"; }
-# echo args then run and send output to stderr
+# echo args to stderr, then run. Useful when discarding stdout
m2() { printf "%s\n" "$*" >&2; "$@"; }
+# echo args, then run args in background, discarding output.
+mq() { printf "%s\n" "$*"; "$@" &>/dev/null & }
# better uptime
# systemd namespace + mount namespace
sdmn() {
- local ns unit user tmpf alt_user=false
+ local ns unit user tmpf pre_check pid alt_user=false
local -a final_args
user=$USER
while [[ $1 ]]; do
}
mnsd() { # mount namespace + systemd network namespace
- local ns unit user tmpf alt_user=false
+ local ns unit user tmpf pre_check pid alt_user=false
local -a final_args
## begin command line args ##