Skip to content

Instantly share code, notes, and snippets.

@akramarev akramarev/git.sh
Last active Jan 26, 2019

Embed
What would you like to do?
[git for wsl] Makes git faster on WSL #wsl #osreinstall
#!/bin/bash
# WSL 'git' wrapper, save as /usr/local/bin/git and chmod a+x
# https://github.com/Microsoft/WSL/issues/981#issuecomment-363638656
REALPATH=`readlink -f ${PWD}`
if [ "${REALPATH:0:5}" == "/mnt/" ]; then
git.exe "$@"
else
/usr/bin/git "$@"
fi
#!/bin/bash
# WSL 'go' wrapper, save as /usr/local/bin/go and chmod a+x
# https://github.com/Microsoft/WSL/issues/981#issuecomment-363638656
REALPATH=`readlink -f ${PWD}`
if [ "${REALPATH:0:5}" == "/mnt/" ]; then
go.exe "$@"
else
/usr/bin/go "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.