oh-my-fish/plugins/gi/gi.fish
James Hillyerd 5829ff0f5a Redesign gitignore plugin
- removed code that fetches completions frim gitignore.io each time fish
  is started -- makes logins slow!
- gi.load becomes gi.fish, only contains gi function
- add _update_gi_completions.fish: fetches list of completions from
  gitignore.io and places it into ~/.config/fish/completions
- modify gi function to accept update-completions argument
2014-07-20 00:40:45 -03:00

10 lines
228 B
Fish

function gi -d "gitignore.io cli for fish"
if test $argv[1] = 'update-completions'
_update_gi_completions
return $status
end
set -l params (echo $argv|tr ' ' ',')
curl -s http://www.gitignore.io/api/$params
end