Created
December 12, 2012 08:32
-
-
Save haldean/4266111 to your computer and use it in GitHub Desktop.
A quick shell function to suppress all output from a command.
This file contains hidden or 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
# Add this to your .bashrc (or .zshrc, .profile, etc.), | |
# then call noisy commands using "silent noisy_command". | |
# Especially useful for things like "silent firefox &". | |
function silent { | |
$@ >/dev/null 2>/dev/null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment