Skip to content

Instantly share code, notes, and snippets.

@ringmaster
Created May 5, 2014 18:08
Show Gist options
  • Save ringmaster/ec6c3172e015c11fac20 to your computer and use it in GitHub Desktop.
Save ringmaster/ec6c3172e015c11fac20 to your computer and use it in GitHub Desktop.
alias l="ls -la"
alias phpd="php -dxdebug.remote_autostart=On"
alias more=less
export EDITOR=vim
export SSH_AUTH_SOCK=/tmp/.ssh-socket
ssh-add -l 2>&1 >/dev/null
if [ $? = 2 ]; then
# Exit status 2 means couldn't connect to ssh-agent; start one now
ssh-agent -a $SSH_AUTH_SOCK >/tmp/.ssh-script
. /tmp/.ssh-script
echo $SSH_AGENT_PID >/tmp/.ssh-agent-pid
fi
function kill-agent {
pid=`cat /tmp/.ssh-agent-pid`
kill $pid
}
ssh-add
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment