Skip to content

Instantly share code, notes, and snippets.

@ojacques
Last active June 14, 2021 04:06
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ojacques/6a4c82f9516216db469dfb8065a46b7a to your computer and use it in GitHub Desktop.
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

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