From 42e95232d76e1abfd17bc5373d10902d0f631a5c Mon Sep 17 00:00:00 2001 From: bjeanes Date: Mon, 18 Aug 2008 23:13:16 -0700 Subject: [PATCH] Added an alias to place a .gitignore file in all empty directories recursively from current directory. --- .bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bashrc b/.bashrc index 0f48683..a0aaa11 100644 --- a/.bashrc +++ b/.bashrc @@ -55,6 +55,8 @@ alias gac='git commit -a' alias gps='git push origin master' alias gpl='git pull origin master' +alias ignore_empty='find . \( -type d -empty \) -and \( -not -regex ./\.git.* \) -exec touch {}/.gitignore \;' + # Gem Doc export GEMDIR=`gem env gemdir` gemdoc() {