Created
March 8, 2021 14:40
-
-
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
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
{ 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