Skip to content

Instantly share code, notes, and snippets.

@mvidaldp
Created March 8, 2021 14:40
Show Gist options
  • Save mvidaldp/dcc3cb3c8be2ccaa4c8c87b1ae084f08 to your computer and use it in GitHub Desktop.
Save mvidaldp/dcc3cb3c8be2ccaa4c8c87b1ae084f08 to your computer and use it in GitHub Desktop.
Hide/silence ssh-agent or any other command/s on a Linux shell
{ eval "${ssh-agent}"; ssh-add .ssh/mykey; } &>/dev/null
# so -> { eval "${command1}"; command2; } &>/dev/null
# very useful for hiding .bashrc and .zshrc output
# source: https://unix.stackexchange.com/a/73607
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment