From 162bbbe64aa3f5c02acad7cd46305d6c070b9005 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 14 Sep 2012 19:49:01 +0900 Subject: [PATCH] add _iswindows func in setup.sh --- setup.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 513bda4..d8c7c7a 100755 --- a/setup.sh +++ b/setup.sh @@ -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 }