Update bash.nix to improve WSL Windows alias handling

This commit is contained in:
2025-10-26 02:02:21 +02:00
parent 310fb92ec9
commit 5edd7c413e

View File

@@ -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