aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-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`