wip
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
source $HOME/dotfiles/bin/helpers/functions.sh
|
||||
export SSH_AUTH_SOCK=$HOME/.1password/agent.sock
|
||||
|
||||
# Check if is_wsl function returns true, don't continue if we are not on WSL
|
||||
if ! is_wsl; then
|
||||
@@ -6,8 +7,6 @@ if ! is_wsl; then
|
||||
fi
|
||||
|
||||
printfe "%s" "cyan" "Running in WSL, ensuring 1Password SSH-Agent relay is running..."
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user