Skip to content

Instantly share code, notes, and snippets.

View danielhass's full-sized avatar

Daniel Haß danielhass

  • Germany
View GitHub Profile
@danielhass
danielhass / gist:e3daa43f718c62a4b7a6126f120df337
Created June 17, 2022 14:43
Reusing ssh-agent from Git Bash in Visual Studio Code - .bashrc
env=~/.ssh/agent.env
agent_load_env () { test -f "$env" && . "$env" | /dev/null ; }
agent_start () {
(umask 077; ssh-agent >| "$env")
. "$env" >| /dev/null ; }
agent_load_env