Created
May 8, 2020 19:34
-
-
Save BrandonLWhite/beb66d0cc3e60d1856ae91fb3027cc4a to your computer and use it in GitHub Desktop.
Bash script to launch GitExtensions (Windowsland) from WSL2 bash path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LINUX_PATH=$(pwd) | |
#echo ${LINUX_PATH} | |
WINDOWS_PATH="\"U:${LINUX_PATH//\//\\}\"" | |
#echo ${WINDOWS_PATH} | |
GIT_EXTENSIONS_PATH="\"/mnt/c/Program Files (x86)/GitExtensions/GitExtensions.exe\"" | |
GIT_EXTENSIONS_COMMAND="${GIT_EXTENSIONS_PATH} browse ${WINDOWS_PATH}" | |
echo ${GIT_EXTENSIONS_COMMAND} | |
eval ${GIT_EXTENSIONS_COMMAND} & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here I have my Ubuntu distro root mounted as "U:" drive in Windows. GitExtensions does not work with \wsl$\ paths.