Update bash.nix to improve WSL Windows alias handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user