eval, exec and eval “$(ssh-agent -s)”

great explanation at http://unix.stackexchange.com/a/296852

(using eval for commands that outputs shell commands, like eval “$(ssh-agent)” will result in all those commands being executed in the current shell, so when ssh-agent defines some variables, they will all be available in the current shell)

Advertisements