From 67032ca07fc0b5b1818f2d7012f433caecb90b24 Mon Sep 17 00:00:00 2001 From: Sandro Date: Tue, 9 May 2023 17:05:03 +0200 Subject: [PATCH] Use absolute PATH to powershell.exe This is guaranteed to be always at this location and is always available if Interopt is enabled. With this it is no longer required to have powershell.exe in PATH which significantly slows down tab completion due to the very slow fs access times on WSL2. Before git-open would silently fail if powershell.exe was not available. --- git-open | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-open b/git-open index a7aec6e..e4ead44 100755 --- a/git-open +++ b/git-open @@ -263,7 +263,7 @@ case $( uname -s ) in CYGWIN*) open='cygstart';; *) # Try to detect WSL (Windows Subsystem for Linux) if uname -r | grep -q -i Microsoft; then - open='powershell.exe -NoProfile Start' + open='/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -NoProfile Start' else open='xdg-open' fi;;