Created
October 19, 2018 19:12
-
-
Save nilox94/763c4c84bf77862a91407becd1e1b842 to your computer and use it in GitHub Desktop.
Executes a command and suppress its output
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
# mute | |
function mute() | |
{ | |
${@:1} &> /dev/null | |
} | |
# mute completion -*- shell-script -*- | |
_mute() | |
{ | |
_init_completion -s || return | |
_command_offset 1 | |
return | |
} && | |
complete -F _mute mute | |
# ex: ts=4 sw=4 et filetype=sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment