Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
c0905fd8
Commit
c0905fd8
authored
Nov 06, 2014
by
Robby Russell
Browse files
Merge pull request #3226 from mcornella/fix-plugin-gitignore
[Plugin: gitignore] Several fixes in the plugin
parents
7f07facf
b452cafb
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/gitignore/gitignore.plugin.zsh
View file @
c0905fd8
function
gi
()
{
curl http://www.gitignore.io/api/
$@
;
}
function
gi
()
{
curl
-sL
http
s
://www.gitignore.io/api/
$@
;
}
_gitign
i
reio_get_command_list
()
{
_gitign
o
reio_get_command_list
()
{
curl
-s
http://www.gitignore.io/api/list |
tr
","
"
\n
"
curl
-s
L
http
s
://www.gitignore.io/api/list |
tr
","
"
\n
"
}
}
_gitign
i
reio
()
{
_gitign
o
reio
()
{
compset
-P
'*,'
compset
-P
'*,'
compadd
-S
''
`
_gitign
i
reio_get_command_list
`
compadd
-S
''
`
_gitign
o
reio_get_command_list
`
}
}
compdef _gitign
i
reio gi
compdef _gitign
o
reio gi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment