From a5444b54a65020aa82e78d05b7eb45f78c90429e Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 8 Sep 2012 15:07:43 +0900 Subject: [PATCH] add git alias clean-p --- setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.sh b/setup.sh index 3c7499a..513bda4 100755 --- a/setup.sh +++ b/setup.sh @@ -61,6 +61,7 @@ git_config(){ # git config --global alias.my-ls "ls-files | xargs ls" # 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 git config --global core.fileMode false fi