diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-04-17 13:58:49 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-04-17 13:58:49 -0500 |
commit | 62f2f49b168ae9393d16b492364d0c76b2fe18bc (patch) | |
tree | 08513be1fd59bdf422436e8d625a7c6151a177fc /zsh | |
parent | 4a028403c6a9aaf36b8e4ef571f934703d949c39 (diff) |
feat: moving from wsl-pagent to wsl2-pagent
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/ssh.zsh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/zsh/ssh.zsh b/zsh/ssh.zsh deleted file mode 100644 index 9abfbdb..0000000 --- a/zsh/ssh.zsh +++ /dev/null @@ -1,10 +0,0 @@ -if [ -z "$SSH_AUTH_SOCK" ]; then - # Check for a currently running instance of the agent - RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`" - if [ "$RUNNING_AGENT" = "0" ]; then - # Launch a new instance of the agent - ssh-agent -s &> $HOME/.ssh/ssh-agent - fi - eval `cat $HOME/.ssh/ssh-agent` > /dev/null - ssh-add &> /dev/null -fi |