-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- Working 1password integration
- Working ssh-agent forwarding
# ~/.zshrc
# npiperelay, socat
cat <<'EOF' | tee --append ~/.bashrc
export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock
ALREADY_RUNNING=$(ps -auxww | grep -q "[n]piperelay.exe -ei -s //./pipe/openssh-ssh-agent"; echo $?)
if [[ $ALREADY_RUNNING != "0" ]]; then
if [[ -S $SSH_AUTH_SOCK ]]; then
echo "removing previous socket..."
rm $SSH_AUTH_SOCK
fi
echo "Starting SSH-Agent relay..."
(setsid socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork EXEC:"npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork &) >/dev/null 2>&1
fi
EOF
# git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe"
#git config --global credential.https://dev.azure.com.useHttpPath true
#git config --global user.name "<Name> <Surname>"
#git config --global user.email "name@domain"Metadata
Metadata
Assignees
Labels
No labels