File: url-resolver.t

package info (click to toggle)
zsh-antigen 1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 208 kB
  • ctags: 6
  • sloc: makefile: 10; sh: 4
file content (33 lines) | stat: -rw-r--r-- 932 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Helper alias.

  $ alias resolve=-antigen-resolve-bundle-url

Complete urls.

  $ resolve https://github.com/zsh-users/antigen.git
  https://github.com/zsh-users/antigen.git
  $ resolve git://github.com/zsh-users/antigen.git
  git://github.com/zsh-users/antigen.git
  $ resolve git@github.com:zsh-users/antigen.git
  git@github.com:zsh-users/antigen.git

Complete github urls, missing the `.git` suffix.

  $ resolve https://github.com/zsh-users/antigen
  https://github.com/zsh-users/antigen
  $ resolve git://github.com/zsh-users/antigen
  git://github.com/zsh-users/antigen
  $ resolve git@github.com:zsh-users/antigen
  git@github.com:zsh-users/antigen

Just username and repo name.

  $ resolve zsh-users/antigen
  https://github.com/zsh-users/antigen.git
  $ resolve zsh-users/antigen.git
  https://github.com/zsh-users/antigen.git

Local absolute file path.

  $ resolve /path/to/a/local/git/repo
  /path/to/a/local/git/repo