Skip to content

Instantly share code, notes, and snippets.

Last active Jun 14, 2021
What would you like to do?
WSL tips Windows 10 /

Collecting tips to make Windows 10 WSL a tiny bit faster

  • Wrap git to use Windows's GIT per this
  • Delay when starting conemu prompt: add %program files%\conemu folder to windows defender folder exclusion, per this
# WSL 'git' wrapper, save as /usr/local/bin/git and chmod a+x

/c/Program\ Files/Git/bin/git.exe "$@"
  • add gitk:
# WSL 'gitk' wrapper, save as /usr/local/bin/git and chmod a+x

/c/Program\ Files/Git/cmd/gitk.exe "$@"
Copy link

ryancwalsh commented Jul 2, 2020

To get gitk working in WSL, this worked for me:

ls /usr/local/bin/ && ls /usr/local/bin/gitk
sudo touch /usr/local/bin/gitk && sudo chmod a+x /usr/local/bin/gitk && ls /usr/local/bin/
echo '/mnt/c/Program\ Files/Git/cmd/gitk.exe "$@"' | sudo tee -a /usr/local/bin/gitk && cat /usr/local/bin/gitk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment