@holeshapedgod

re https://shieldfoss.tumblr.com/post/738216288277708800/in-the-context-of-cloning-a-github-repo-i

The script would be:

#!/bin/sh
gh repo clone "~/repos/${1@L}"

and you'd run it like 'script WhAtEvEr/WhAtEvEr'

Wait, idk what I was smoking, it should be

#!/bin/sh
cd ~/"repos/${1@L}"
gh repo clone "$1"

Happy new year! If I'm reading it right, you're still slightly too high - that cd isn't guaranteed to work (in particular - if this is the first clone from that org)


You must log in to comment.

in reply to @shieldfoss's post:

oh god. sorry

#!/bin/sh
gh repo clone "$1" ~/"repos/${1@L}"

That should be it.

(I'm constantly sleep deprived, I can't hold on to more than 2 things at a time)

Anyway, weren't you using powershell? Surely you can accomplish this in it.