Only run wsl2-ssh-agent if we're in a WSL env

This commit is contained in:
Erica Marigold 2025-02-05 16:45:17 +00:00
parent 3991d3372e
commit 6437d85e39
Signed by: DevComp
SSH key fingerprint: SHA256:jD3oMT4WL3WHPJQbrjC3l5feNCnkv7ndW8nYaHX5wFw

View file

@ -42,14 +42,6 @@ if test -f ~/.bash_aliases
source ~/.bash_aliases
end
# Alias windows openSSH installation
# set WIN_OPENSSH_DIR /mnt/c/Windows/System32/OpenSSH
# for file in $WIN_OPENSSH_DIR/*
# set base_name (basename $file)
# set alias_name (string replace -r '\.exe$' '' $base_name)
# alias $alias_name $file
# end
# Enable programmable completion features
if test -f /usr/share/fish/completions
source /usr/share/fish/completions
@ -82,7 +74,7 @@ set -gx PATH "$HOME/.local/bin" $PATH
# Cargo setup
source "$HOME/.cargo/env.fish"
if status is-login
if status is-login and test -n "$WSL_DISTRO_NAME"
wsl2-ssh-agent | source
end