All the PCs in the company where I work comes with Windows installed. So I
spend my working day in Windows and I constantly use Windows Terminal with a
WSL2 session in it. I recently switched from Debian 12 to AlmaLinux 9 in WSL2.
AlmaLinux 9's default `.bashrc` includes everey file in `~/.bashrc.d` directory,
so I put all of my configurations there.
SSH Client
----------
- File: `~/.bashrc.d/ssh-wsl2`
```
# Support for USB Tokens/Fido2
export SSH_SK_HELPER="/mnt/c/Program Files (x86)/OpenSSH/ssh-sk-helper.exe"
# ssh-agent workaround for WSL2
ssh_pid=$(pidof ssh-agent)
if [ "$ssh_pid" = "" ]; then
ssh_env="$(ssh-agent -s)"
echo "$ssh_env" | head -n 2 | tee ~/.ssh_agent_env > /dev/null
fi
if [ -f ~/.ssh_agent_env ]; then
eval "$(cat ~/.ssh_agent_env)"
fi
```