From d0727f4405cb745f17036fb884c4148469a4c399 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 21 Jan 2020 15:58:34 +0900 Subject: [PATCH] Add scripts --- misc/push-pull/pull | 9 +++++++++ misc/push-pull/pull.cmd | 7 +++++++ misc/push-pull/push | 8 ++++++++ misc/push-pull/push.cmd | 7 +++++++ misc/{ => zsh-completion}/completion.zsh | 0 5 files changed, 31 insertions(+) create mode 100755 misc/push-pull/pull create mode 100644 misc/push-pull/pull.cmd create mode 100755 misc/push-pull/push create mode 100644 misc/push-pull/push.cmd rename misc/{ => zsh-completion}/completion.zsh (100%) diff --git a/misc/push-pull/pull b/misc/push-pull/pull new file mode 100755 index 0000000..7f4cc34 --- /dev/null +++ b/misc/push-pull/pull @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "x$1" = "x-usage" ]; then + echo push memo from server + exit +fi + +cd $MEMODIR && git pull origin master + diff --git a/misc/push-pull/pull.cmd b/misc/push-pull/pull.cmd new file mode 100644 index 0000000..d5dd11b --- /dev/null +++ b/misc/push-pull/pull.cmd @@ -0,0 +1,7 @@ +@echo off +if "x%1" neq "x-usage" goto run +echo pull memo from server +goto :eof +:run +setlocal +cd %MEMODIR% && git pull origin master diff --git a/misc/push-pull/push b/misc/push-pull/push new file mode 100755 index 0000000..9ea88d9 --- /dev/null +++ b/misc/push-pull/push @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ "x$1" = "x-usage" ]; then + echo push memo to server + exit +fi + +cd $MEMODIR && git add -A --ignore-errors && git commit -m update && git push origin master diff --git a/misc/push-pull/push.cmd b/misc/push-pull/push.cmd new file mode 100644 index 0000000..1624a24 --- /dev/null +++ b/misc/push-pull/push.cmd @@ -0,0 +1,7 @@ +@echo off +if "x%1" neq "x-usage" goto run +echo push memo to server +goto :eof +:run +setlocal +cd %MEMODIR% && git add -A --ignore-errors && git commit -m update && git push origin master diff --git a/misc/completion.zsh b/misc/zsh-completion/completion.zsh similarity index 100% rename from misc/completion.zsh rename to misc/zsh-completion/completion.zsh