From 6437d85e3962986302ab5b9c12a43611d19e2d9d Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Wed, 5 Feb 2025 16:45:17 +0000 Subject: [PATCH] Only run `wsl2-ssh-agent` if we're in a WSL env --- .config/fish/config.fish | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index cb0b43c..88f9414 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -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