Skip to content

Instantly share code, notes, and snippets.

@a-shevtsov
a-shevtsov / .bash_profile
Last active September 24, 2020 20:54
Bash profile for Mac OS X
#!/usr/bin/env bash
# Start SSH agent
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"