├── README.md └── gitio /README.md: -------------------------------------------------------------------------------- 1 | ``` 2 | ██ ██ ██ 3 | █████ ░░ ░██ ░░ 4 | ██░░░██ ██ ██████ ██ ██████ 5 | ░██ ░██░██░░░██░ ░██ ██░░░░██ 6 | ░░██████░██ ░██ ░██░██ ░██ 7 | ░░░░░██░██ ░██ ░██░██ ░██ 8 | █████ ░██ ░░██ ██░██░░██████ 9 | ░░░░░ ░░ ░░ ░░ ░░ ░░░░░░ 10 | 11 | create short / vanity github urls 12 | xero / syntax-samurai 13 | 14 | ▟▙ 15 | ▟▒░░░░░░░▜▙▜████████████████████████████████▛ 16 | ▜▒░░░░░░░▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛ 17 | ▜▛ 18 | 19 | create short / vanity github urls 20 | usage: gitio http://github.com/something [-v mini] 21 | 22 | options: 23 | -v shortlink 24 | -h display this screen 25 | ``` 26 | 27 | --------------------------------------------------- 28 | 29 | ### examples 30 | 31 | - `gitio https://github.com/syntax-samurai` 32 | - https://git.io/xoSi 33 | - `gitio https://github.com/xero -v xero` 34 | - https://git.io/xero 35 | - `gitio -v xr https://github.com/xero?tab=repositories` 36 | - https://git.io/xr 37 | - `gitio https://github.com/xero?tab=activity -v xeros_activity` 38 | - https://git.io/xeros_activity 39 | - `gitio https://xero.github.io -v x0` 40 | - https://git.io/x0 41 | -------------------------------------------------------------------------------- /gitio: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # ██ ██ ██ 4 | # █████ ░░ ░██ ░░ 5 | # ██░░░██ ██ ██████ ██ ██████ 6 | # ░██ ░██░██░░░██░ ░██ ██░░░░██ 7 | # ░░██████░██ ░██ ░██░██ ░██ 8 | # ░░░░░██░██ ░██ ░██░██ ░██ 9 | # █████ ░██ ░░██ ██░██░░██████ 10 | # ░░░░░ ░░ ░░ ░░ ░░ ░░░░░░ 11 | # 12 | # create short / vanity github urls 13 | # ▟▙ 14 | # ▟▒░░░░░░░▜▙▜████████████████████████████████▛ 15 | # ▜▒░░░░░░░▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛ 16 | # ▜▛ 17 | # xero / syntax-samurai 18 | 19 | usage () { 20 | cat <