Skip to content

Instantly share code, notes, and snippets.

@haldean
Created December 12, 2012 08:32
Show Gist options
  • Save haldean/4266111 to your computer and use it in GitHub Desktop.
Save haldean/4266111 to your computer and use it in GitHub Desktop.
A quick shell function to suppress all output from a command.
# 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