Skip to content
Permalink
Browse files
added git for WSL2 microsoft/WSL#4401
  • Loading branch information
rajyan committed Aug 23, 2020
1 parent f611c63 commit 43ec3e33db053d9dd82efa5ed0fcccdb776c5380
Showing 1 changed file with 8 additions and 0 deletions.
@@ -5,3 +5,11 @@ alias ojtr='oj t --print-memory -c ../x64/Release/${PWD##*/}.exe'
alias ojs='oj s $(ls -t | grep .cpp$ | head -1)'
alias ojdt='ojd && ojt'
alias ojts='ojt && ojs'

function git() {
if $(pwd -P | grep -q "^\/mnt\/c\/*"); then
git.exe "$@"
else
/bin/git "$@"
fi
}

0 comments on commit 43ec3e3

Please sign in to comment.