mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
b85c72b5f6
Deals with app error page, saving true error instead. Upon app failure, Heroku returns HTML "Application Error" page. Finding HTML page in .gitignore is confusing, so I replaced `-s` with `-f` in curl calls, which cuts such output. Replace instead of addition as no progress meter outputs either. It is practically impossible to teach good programming style to students that have had prior exposure to BASIC. As potential programmers, they are mentally mutilated beyond hope of regeneration. -- E. W. Dijkstra
12 lines
275 B
Bash
12 lines
275 B
Bash
function gi() { curl -fL https://www.gitignore.io/api/${(j:,:)@} }
|
|
|
|
_gitignoreio_get_command_list() {
|
|
curl -fL https://www.gitignore.io/api/list | tr "," "\n"
|
|
}
|
|
|
|
_gitignoreio () {
|
|
compset -P '*,'
|
|
compadd -S '' `_gitignoreio_get_command_list`
|
|
}
|
|
|
|
compdef _gitignoreio gi
|