tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.97k stars 419 forks source link

allow for using git clone via ssh or https #130

Open ssnyder opened 6 years ago

ssnyder commented 6 years ago

My corporate setup will not let me use https for some reason to clone git repos. I must use the ssh key that I've added to my github account.

To fix this, I've manually updated the install_plugins.sh script so that it reads:

clone_plugin() {
  local plugin="$1"
  clone "$plugin" || clone "git@github.com:$plugin"
}

This seems to work for me. Please make some kind of option that we can set in the .tmux.conf file.

Thanks!

gpakosz commented 3 years ago

Hey @ssnyder 👋

You'll be interested in git config's url.<base>.insteadOf:

$ git config --global "url.git@github.com:tmux-plugins.insteadOf" "https://github.com/tmux-plugins"