Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
aubreypwd opened this issue Oct 1, 2020 · 1 comment

Comments

@aubreypwd
Copy link

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

  • antigen version: Antigen v2.2.3 (ff391b5) Revision date: 2018-01-02 13:19:57 +0100
  • zsh --version: zsh 5.8 (x86_64-apple-darwin19.3.0)
  • uname -a: Darwin Macbook Pro 3 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64

Configuration

@aubreypwd
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant