summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zsh/.config/zsh/.zshrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index 884114c..bdd34e1 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -91,6 +91,19 @@ compdef _dotnet_zsh_complete dotnet
[[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]] && . ~/.config/tabtab/zsh/__tabtab.zsh || true
+if [ -n $WSL_DISTRO_NAME ]
+then
+ command_not_found_handler() {
+ if [ -x "$(command -v $@.exe)" ]; then
+ $@.exe
+ else
+ echo >&2 "zsh: command not found: $@"
+ return 127
+ fi
+}
+fi
+
+
case "$ID" in
debian | ubuntu )
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh