From af15f8d8e9aad890959f5d823e08e0a50615a880 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Mon, 18 May 2020 21:03:07 +0200 Subject: [PATCH] Edit 'ghrc' script Add `--public` flag to create public repos. --- .local/bin/scripts/ghrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/scripts/ghrc b/.local/bin/scripts/ghrc index 312ef4a..b956be2 100755 --- a/.local/bin/scripts/ghrc +++ b/.local/bin/scripts/ghrc @@ -1,11 +1,11 @@ #!/bin/sh -# Very stupid script to create remote GitHub repo and replace +# Very stupid script to create remote GitHub repo and replace # https to ssh remote connection. [ ! "$(git status 2>/dev/null)" ] && git init -gh repo create | sed 's/https:\/\//Added remote: git@/g' +gh repo create --public | sed 's/https:\/\//Added remote: git@/g' url="$(git remote -v | awk 'NR==2 { print $2 }' | \ sed 's/.*https:\/\//git@/g; s/com\//com:/g')"