aboutsummaryrefslogtreecommitdiff
path: root/ztd
diff options
context:
space:
mode:
Diffstat (limited to 'ztd')
-rwxr-xr-xztd38
1 files changed, 0 insertions, 38 deletions
diff --git a/ztd b/ztd
deleted file mode 100755
index 7d3add8..0000000
--- a/ztd
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-#
-# ZTD extension to commit, push and fetch a project.
-#
-
-# Parameters
-PROJECT="$1"
-
-# Try to get there
-if [ ! -z "$PROJECT" ]; then
- cd $PROJECT &> /dev/null
-elif ! git status &> /dev/null; then
- cd
- remind ~/.reminders | grep -v '^No reminders.$'
- status
- todo
- postponed
-
- if [ ! -z "`ls -1 ~/load/`" ]; then
- echo "Dangling files at ~/load:"
- echo ""
- ls -lh ~/load/
- fi
-
- exit
-fi
-
-# Sync
-if git status &> /dev/null; then
- if which updates > /dev/null; then
- updates
- else
- git commit -a -m "Updates $PROJECT"
- git push
- fi
-
- git fetch --all
-fi