zsh-users / antigen

The plugin manager for zsh.
http://antigen.sharats.me
MIT License
8.01k stars 279 forks source link

Add option (or is there an option) to have antigen prefer SSH when cloning #714

Closed aubreypwd closed 1 year ago

aubreypwd commented 4 years ago

Description

When using e.g. antigen bundle username/repo there could be a way to have antigen clone the repo using SSH instead of HTTPS.

The reason I'm suggesting this is because, I like to be able to contribute to plugins upstream via Git. So I can cd $HOME/.antigen/bundle/username/repo and it's a clone of the repo. But, if your Github account has 2FA turned on, the remote for this repo is (by default) HTTPS.

Is there or can we add a way to tell antigen to prefer SSH URL's when cloning this way?

Steps to reproduce

Software version

Configuration

aubreypwd commented 4 years ago

Nevermind, I figured out you can use antigen bundle ssh://git@github.com/WebDevStudios/zsh-plugin-satisbuild.git to accomplish the same thing. But, I might suggest a way to do antigen bundle username/repo --ssh to make this that much easier?