Skip to content

Commit

Permalink
added git for WSL2 microsoft/WSL#4401
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed Aug 23, 2020
1 parent f611c63 commit 43ec3e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -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.