Skip to content

Instantly share code, notes, and snippets.

View aflondono's full-sized avatar

aflondono

  • Brisbane, Australia
  • 00:31 (UTC +10:00)
View GitHub Profile
@aflondono
aflondono / reuse_agent.sh
Last active September 27, 2020 23:38 — forked from MarkRose/reuse_agent.sh
Reuse existing ssh-agent or start a new one
#!/usr/bin/env bash
# This is a fork created to be used with Git Bash that comes with the installation
# of Git for Windows (https://gitforwindows.org/), and it was tested only on that
# environment.
# Append this to your .bashrc to reuse an existing ssh-agent, or if you don't have
# a .bashrc file (normally located in Windows under 'C:\Users\username'), then
# make this your .bashrc file.
LOGNAME=username
GOT_AGENT=0