Add WSL aliases for Windows SSH and Zed
All checks were successful
Ansible Lint Check / check-ansible (push) Successful in 6s
Nix Format Check / check-format (push) Successful in 51s
Python Lint Check / check-python (push) Successful in 15s

This commit is contained in:
2025-10-23 04:20:15 +02:00
parent fb1661386b
commit 310fb92ec9
2 changed files with 95 additions and 44 deletions

View File

@@ -137,6 +137,11 @@
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
@@ -190,10 +195,6 @@
# Kubernetes aliases
"kubectl" = "minikube kubectl --";
# Editor aliases
"zeditor" = "${config.home.homeDirectory}/.local/bin/zed";
"zed" = "${config.home.homeDirectory}/.local/bin/zed";
# SSH alias
"ssh" = "${config.home.homeDirectory}/.local/bin/smart-ssh";