my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
284 B

3 years ago
  1. function gi() { curl -fLw '\n' https://www.gitignore.io/api/"${(j:,:)@}" }
  2. _gitignoreio_get_command_list() {
  3. curl -sfL https://www.gitignore.io/api/list | tr "," "\n"
  4. }
  5. _gitignoreio () {
  6. compset -P '*,'
  7. compadd -S '' `_gitignoreio_get_command_list`
  8. }
  9. compdef _gitignoreio gi