-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.cygwin
18 lines (14 loc) · 794 Bytes
/
.cygwin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
echo "Applying Cygwin/Windows specific configs..."
# prevent stupid filemode issues; Windows can't handle these properly.
git config core.filemode false
#re-alias git to work-around issue w/ npm (work in progress...)
#example which breaks:
#git -c core.longpaths=true clone C:\Users\itsnotvalid\AppData\Roaming\npm-cache\_git-remotes\https-github-com-itsnotvalid-node-plist-native-git-4e9eff69 C:\cygwin64\tmp\npm-148168-d3eacb24\git-cache-b4419446b15c\374dd978d1c6a895f9e4 5bff958ce4aef2ccbe44
#potential fix per Eliot Moss, Cygwin mailing list (only works if paths are quoted).
#function git {
# declare -a ARGS
# for n in "$@" ; do ARGS+=("$(cygpath -u -- "${n}")") ; done
# command git "${ARGS[@]}"
#}
# cygwin specific aliases
alias proj="cd /cygdrive/c/Users/`whoami`/Projects"