aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2022-11-18 00:46:25 +0900
committerA Farzat <a@farzat.xyz>2022-11-18 00:46:25 +0900
commitfef8295aa037eed0409cefee4e6918e1670eb1b0 (patch)
tree07b1006026a11c0b6504c10b5cd2c606581b9c02
parent596a2742776c267eb34cae26dfba13e1854a4ab2 (diff)
downloadmy-zsh-completions-fef8295aa037eed0409cefee4e6918e1670eb1b0.tar.gz
my-zsh-completions-fef8295aa037eed0409cefee4e6918e1670eb1b0.zip
Add _gitignoreio
-rw-r--r--functions/_gitignoreio8
1 files changed, 8 insertions, 0 deletions
diff --git a/functions/_gitignoreio b/functions/_gitignoreio
new file mode 100644
index 0000000..f701834
--- /dev/null
+++ b/functions/_gitignoreio
@@ -0,0 +1,8 @@
+#compdef gitignoreio
+
+_gitignoreio_get_command_list() {
+ curl -sL https://www.toptal.com/developers/gitignore/api/list | tr "," "\n"
+}
+
+compset -P '*,'
+compadd -S '' `_gitignoreio_get_command_list`