Skip to content

Commit 43ec3e3

Browse files
committed
added git for WSL2 microsoft/WSL#4401
1 parent f611c63 commit 43ec3e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.aliases

+8
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@ alias ojtr='oj t --print-memory -c ../x64/Release/${PWD##*/}.exe'
55
alias ojs='oj s $(ls -t | grep .cpp$ | head -1)'
66
alias ojdt='ojd && ojt'
77
alias ojts='ojt && ojs'
8+
9+
function git() {
10+
if $(pwd -P | grep -q "^\/mnt\/c\/*"); then
11+
git.exe "$@"
12+
else
13+
/bin/git "$@"
14+
fi
15+
}

0 commit comments

Comments
 (0)