dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

gitignore.plugin.zsh (302B)


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