Browse Source

add _iswindows func in setup.sh

pull/1/head
10sr 12 years ago
parent
commit
162bbbe64a
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      setup.sh

+ 9
- 1
setup.sh View File

@@ -3,6 +3,14 @@
mkdir -p ~/.my/log
mkdir -p ~/.local/bin

_iswindows(){
case `uname` in
(CYGWIN*) return 0;;
(MINGW*) return 0;;
esac
return 1
}

gen_source_script(){
# _gen_source_script file lines
test $# -eq 2 || return 1
@@ -62,7 +70,7 @@ git_config(){
# git config --global alias.ll "!git ls-files | xargs ls -l -CFG --color=auto --time-style=long-iso"
git config --global alias.addi "add -i"
git config --global alias.clean-p "!test -z \"\$(git status -s -uno)\""
if false iswindows; then
if _iswindows; then
git config --global core.fileMode false
fi
}


Loading…
Cancel
Save