diff options
author | Robby Russell <robby@planetargon.com> | 2013-10-08 19:24:27 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-10-08 19:24:27 -0700 |
commit | a8efe61d537d9f7e983bb785289d765249738415 (patch) | |
tree | 9bae93d20f665854b6ddb4a0cf0b727147eb8ad6 | |
parent | 61e3951e4be2f496d8ce8022afc58817c06e5dee (diff) | |
parent | 9afb139d20f12f93c086140db3e9bfd4913f15a0 (diff) | |
download | zsh-a8efe61d537d9f7e983bb785289d765249738415.tar.gz zsh-a8efe61d537d9f7e983bb785289d765249738415.tar.bz2 zsh-a8efe61d537d9f7e983bb785289d765249738415.zip |
Merge pull request #2145 from futjikato/master
Added gitignore.io custom plugin
-rw-r--r-- | custom/plugins/gitignore/gitignore.plugin.zsh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/custom/plugins/gitignore/gitignore.plugin.zsh b/custom/plugins/gitignore/gitignore.plugin.zsh new file mode 100644 index 000000000..332497cec --- /dev/null +++ b/custom/plugins/gitignore/gitignore.plugin.zsh @@ -0,0 +1,12 @@ +function gi() { curl http://gitignore.io/api/$@ ;} + +_gitignireio_get_command_list() { + curl -s http://gitignore.io/api/list | tr "," "\n" +} + +_gitignireio () { + compset -P '*,' + compadd -S '' `_gitignireio_get_command_list` +} + +compdef _gitignireio gi
\ No newline at end of file |