mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
The old, non-https URL results in a 301 document: ```html <html> <head><title>301 Moved Permanently</title></head> <body bgcolor="white"> <center><h1>301 Moved Permanently</h1></center> <hr><center>cloudflare-nginx</center> </body> </html> ```
12 lines
263 B
Bash
12 lines
263 B
Bash
function gi() { curl https://www.gitignore.io/api/$@ ;}
|
|
|
|
_gitignireio_get_command_list() {
|
|
curl -s https://www.gitignore.io/api/list | tr "," "\n"
|
|
}
|
|
|
|
_gitignireio () {
|
|
compset -P '*,'
|
|
compadd -S '' `_gitignireio_get_command_list`
|
|
}
|
|
|
|
compdef _gitignireio gi
|