From 0240be89b61c7762eacd722ddd41a6fc295d607f Mon Sep 17 00:00:00 2001 From: reeink Date: Sun, 10 Mar 2024 00:10:40 +0800 Subject: [PATCH] alias ssh.exe to ssh on wsl --- dot_zshrc => dot_zshrc.tmpl | 11 +++++++++++ 1 file changed, 11 insertions(+) rename dot_zshrc => dot_zshrc.tmpl (94%) diff --git a/dot_zshrc b/dot_zshrc.tmpl similarity index 94% rename from dot_zshrc rename to dot_zshrc.tmpl index 4f5b4de..5d227ad 100644 --- a/dot_zshrc +++ b/dot_zshrc.tmpl @@ -155,3 +155,14 @@ alias i='cd ~/i' # Created by `pipx` on 2024-02-17 11:33:21 export PATH="$PATH:/home/ree/.local/bin" + +{{if eq .chezmoi.os "windows" -}} +# windows spec config +{{- else if eq .chezmoi.os "linux" -}} +{{- if (.chezmoi.kernel.osrelease | lower | contains "microsoft") -}} +# wsl spec config +alias ssh="ssh.exe" +{{- else -}} +# linux spec config +{{- end -}} +{{- end}}