diff options
author | Robby Russell <robby@planetargon.com> | 2013-10-24 20:26:20 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-10-24 20:26:20 -0700 |
commit | 9f88fb522901579242e1aaf99e420efd90fd0205 (patch) | |
tree | b992cc8c8209a0da52eac054493201fd39b4c52f /plugins/gitignore | |
parent | e44c147e25ec5dfbf20d5b98544c8b8484abd856 (diff) | |
parent | c5902d3f3498f9cd7553f358f2bf741b0784dbd0 (diff) | |
download | zsh-9f88fb522901579242e1aaf99e420efd90fd0205.tar.gz zsh-9f88fb522901579242e1aaf99e420efd90fd0205.tar.bz2 zsh-9f88fb522901579242e1aaf99e420efd90fd0205.zip |
Merge pull request #2165 from kevinxucs/custom-gitignore-fix
gitignore fix for custom folder.
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 |