3 ms·
I use an alias for it: function launch { type $1 >/dev/null || { print "$1 not found" && return 1 } $@ &>/dev/null &| } alias launch="lau
by scrollaway 11y ago
I use an alias for it:
function launch {
type $1 >/dev/null || { print "$1 not found" && return 1 }
$@ &>/dev/null &|
}
alias launch="launch "
- unhammer 11y agowhy the alias as well as the function?
- scrollaway 11y agohttps://wiki.archlinux.org/index.php/Sudo#Passing_aliases https://wiki.archlinux.org/index.php/Sudo#Passing_aliases
- unhammer 11y agoah, thanks for that tip :-)