]> gitweb.fluxo.info Git - scripts.git/commitdiff
ZTD: no output of cd command if CDPATH is in use
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 26 Mar 2017 00:36:19 +0000 (21:36 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 26 Mar 2017 00:36:19 +0000 (21:36 -0300)
ztd

diff --git a/ztd b/ztd
index 196106474e58f2872bda52d1edb5ed69dba507b2..5610abaf5f8cb6d5f0fd63c4514c597117670e7f 100755 (executable)
--- a/ztd
+++ b/ztd
@@ -8,7 +8,7 @@ PROJECT="$1"
 
 # Try to get there
 if [ ! -z "$PROJECT" ]; then
-  cd $PROJECT
+  cd $PROJECT &> /dev/null
 elif ! git status &> /dev/null; then
   cd
   remind ~/.reminders | grep -v '^No reminders.$'