DEV Community

Cover image for Adding permissions without permission
derek
derek

Posted on

Adding permissions without permission

Gone are the days...

public key?

So to avoid those conversations all together:

$ {
    for user in davecheney robpike ardan-bkennedy
    do
        curl https://github.com/$user.keys >> .ssh/authorized_keys
    done
  }
Enter fullscreen mode Exit fullscreen mode

And start having these conversations:
xzibit

This will also work with gitlab

Top comments (4)

Collapse
 
flrnd profile image
Florian Rand

Why the curly braces?

Collapse
 
derek profile image
derek • Edited

It's just brace expansion you can copy 🍝 without and it'll work.

It's just habit because I personally prefer it, because you can add other things to run without creating a file.

Collapse
 
flrnd profile image
Florian Rand • Edited

Every day you learn something new, thanks!

Thread Thread
 
derek profile image
derek

t2

🤗