Skip to content

Instantly share code, notes, and snippets.

@ojacques
Last active Jun 14, 2021
Embed
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
#!/bin/bash
# WSL 'git' wrapper, save as /usr/local/bin/git and chmod a+x

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

/c/Program\ Files/Git/cmd/gitk.exe "$@"
@ryancwalsh
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