From 6d854c6d738b77ce3e26914e6fb8eddab236dcea Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 29 Nov 2016 10:22:27 -0200 Subject: Moves zsync to ztd with some improvements, adds status --- status | 6 ++++++ zsync | 24 ------------------------ ztd | 31 +++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 24 deletions(-) create mode 100755 status delete mode 100755 zsync create mode 100755 ztd diff --git a/status b/status new file mode 100755 index 0000000..b12e83b --- /dev/null +++ b/status @@ -0,0 +1,6 @@ +#!/bin/bash +# +# Check project status using mr. +# + +mrconfig-updater && mr -m status diff --git a/zsync b/zsync deleted file mode 100755 index 501db02..0000000 --- a/zsync +++ /dev/null @@ -1,24 +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 -fi - -# Sync -if [ -d '.git' ]; then - if which updates > /dev/null; then - updates - else - git commit -a -m "Updates $PROJECT" - git push - fi - - git fetch --all -fi diff --git a/ztd b/ztd new file mode 100755 index 0000000..29ea61f --- /dev/null +++ b/ztd @@ -0,0 +1,31 @@ +#!/bin/bash +# +# ZTD extension to commit, push and fetch a project. +# + +# Parameters +PROJECT="$1" + +# Try to get there +if [ ! -z "$PROJECT" ]; then + cd $PROJECT +else + cd + remind ~/.reminders | grep -v '^No reminders.$' + status + todo + postponed + exit +fi + +# Sync +if [ -d '.git' ]; then + if which updates > /dev/null; then + updates + else + git commit -a -m "Updates $PROJECT" + git push + fi + + git fetch --all +fi -- cgit v1.2.3