From c5111b3482bd867e13b1d835c9779765dff73d4f Mon Sep 17 00:00:00 2001 From: gennyble Date: Thu, 23 Nov 2023 14:15:40 -0600 Subject: init :) --- git-new-section | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 git-new-section (limited to 'git-new-section') diff --git a/git-new-section b/git-new-section new file mode 100755 index 0000000..d276f43 --- /dev/null +++ b/git-new-section @@ -0,0 +1,28 @@ +#! /usr/bin/env bash +# +# usage: +# git new-section section +# +# example: +# git new-section games +# creates: user@remote:games/ +# +# modified from a script by Akshay on +# + +HOST=gen@quartet +CGIT_ROOT=git + +if [ $# -eq 0 ]; then + echo "requires an arg" + exit 1 +fi + +IBlack="\033[0;90m" +White="\033[0;37m" +Yellow="\033[0;33m" +Reset="\033[0m" + +echo -en "${IBlack}" +ssh $HOST mkdir "$CGIT_ROOT/$1"; +echo -e "${White}section '$1' created" -- cgit 1.4.1-3-g733a5