Edit 'ghrc' script

Add `--public` flag to create public repos.
This commit is contained in:
Wiktor Zykubek 2020-05-18 21:03:07 +02:00
parent 206ad10f1d
commit af15f8d8e9

View File

@ -5,7 +5,7 @@
[ ! "$(git status 2>/dev/null)" ] && git init [ ! "$(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 }' | \ url="$(git remote -v | awk 'NR==2 { print $2 }' | \
sed 's/.*https:\/\//git@/g; s/com\//com:/g')" sed 's/.*https:\/\//git@/g; s/com\//com:/g')"