mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-12-02 14:03:51 +08:00
5829ff0f5a
- 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
10 lines
228 B
Fish
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
|