-
-
Save lorenzhs/ad6c009f5748d333b73376e07ae88ef3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gitignore with completion | |
function gi() { curl -sL https://www.gitignore.io/api/$@ ;} | |
_gitignoreio_get_command_list() { | |
curl -sL https://www.gitignore.io/api/list | tr "," "\n" | |
} | |
_gitignoreio () { | |
compset -P '*,' | |
compadd -S '' `_gitignoreio_get_command_list` | |
} | |
compdef _gitignoreio gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment