antigen icon indicating copy to clipboard operation
antigen copied to clipboard

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

Open aubreypwd opened this issue 4 years ago • 1 comments

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

  • gist of .antigenrc: None
  • gist of .zshrc: https://github.com/aubreypwd/vcsh-zsh/blob/master/.zshrc

aubreypwd avatar Oct 01 '20 18:10 aubreypwd

Nevermind, I figured out you can use antigen bundle ssh://[email protected]/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?

aubreypwd avatar Oct 02 '20 02:10 aubreypwd