Permalink
Browse files

Added ssh agent switcher functions (sasw & saswa)

  • Loading branch information...
1 parent 4af2fca commit e00ab5bd3c0c9b4206b153fdf734aebacc0b6bec @ericboehs committed Jul 31, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 zsh/aliases
View
@@ -8,6 +8,8 @@ alias bip='bundle install --path .bundle'
# tmux ssh agent forwarding hack
alias safix='export SSH_AUTH_SOCK=$(find /tmp/ssh-* -user $(whoami) -name agent\* 2>/dev/null |tail -1)'
+sasw() { export SSH_AUTH_SOCK=/tmp/ssh-agent-$1-screen }
+saswa() { ln -nfs /tmp/ssh-agent-$1-screen /tmp/ssh-agent-$USER-screen }
# tmuxme pair function
tmuxme() { tmux -S /var/tmux/pairing attach -t $1 || tmux -S /var/tmux/pairing new-session -s $1 -t $2 || (tmux -S /var/tmux/pairing new-session -s $2 -d && tmux -S /var/tmux/pairing new-session -s $1 -t $2) }

0 comments on commit e00ab5b

Please sign in to comment.