Only run wsl2-ssh-agent
if we're in a WSL env
This commit is contained in:
parent
3991d3372e
commit
6437d85e39
1 changed files with 1 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue