diff options
author | Kaiwen Xu <kevin@kevxu.net> | 2013-10-14 07:39:59 -0400 |
---|---|---|
committer | Kaiwen Xu <kevin@kevxu.net> | 2013-10-14 07:39:59 -0400 |
commit | c5902d3f3498f9cd7553f358f2bf741b0784dbd0 (patch) | |
tree | 38f7ed93d229f1a5618de895181d1b0890a7e440 /plugins/gitignore | |
parent | a7693b096f2573dfcf47f47a8f99c2ccd2690cbf (diff) | |
download | zsh-c5902d3f3498f9cd7553f358f2bf741b0784dbd0.tar.gz zsh-c5902d3f3498f9cd7553f358f2bf741b0784dbd0.tar.bz2 zsh-c5902d3f3498f9cd7553f358f2bf741b0784dbd0.zip |
Moved misplaced plugins.
Diffstat (limited to 'plugins/gitignore')
-rw-r--r-- | plugins/gitignore/gitignore.plugin.zsh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh new file mode 100644 index 000000000..332497cec --- /dev/null +++ b/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 |