my dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

15 lines
259 B

  1. #!/usr/bin/env bash
  2. set -e
  3. if test $# -ne 1; then
  4. echo "please provide a repo" >&2
  5. exit 1
  6. fi
  7. repo="$1"
  8. name="$(grep -Po '[^\/]+$' <<<"$repo")"
  9. path="conf_common/.local/share/nvim/site/pack/plugins/start/$name"
  10. git submodule add -f "$repo" "$path"