From: Silvio Rhatto Date: Thu, 1 Dec 2016 17:25:08 +0000 (-0200) Subject: ZTD: detect when inside a git project X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7a64b316478e313bd0ea085ddf3566e3d78fb919;p=scripts.git ZTD: detect when inside a git project --- diff --git a/ztd b/ztd index 29ea61f..966178d 100755 --- a/ztd +++ b/ztd @@ -9,7 +9,7 @@ PROJECT="$1" # Try to get there if [ ! -z "$PROJECT" ]; then cd $PROJECT -else +else if [ ! -d '.git' ]; then cd remind ~/.reminders | grep -v '^No reminders.$' status