From 5edd7c413e4c722cd6ae35ad698e4dc6379b9c70 Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Sun, 26 Oct 2025 02:02:21 +0200 Subject: [PATCH] Update bash.nix to improve WSL Windows alias handling --- config/bash.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/config/bash.nix b/config/bash.nix index eda3ccb..bb52338 100644 --- a/config/bash.nix +++ b/config/bash.nix @@ -82,6 +82,8 @@ if [[ "$(uname -a)" == *"microsoft-standard-WSL2"* ]]; then [ -f "${config.home.homeDirectory}/.agent-bridge.sh" ] && source "${config.home.homeDirectory}/.agent-bridge.sh" alias winget='winget.exe' + alias ssh-add="ssh-add.exe" + alias git="git.exe" fi # Set SSH_AUTH_SOCK to 1Password agent if not already set @@ -137,11 +139,6 @@ bind -x '"\C-r": fzf_history_search' fi - # In case this is WSL, let's add various Windows executables as aliases - if [ -f "/mnt/c/Windows/System32/cmd.exe" ]; then - alias ssh-add="ssh-add.exe" - fi - # Display welcome message for interactive shells if [ -t 1 ]; then command -v helloworld &> /dev/null && helloworld