chezmoi init
This commit is contained in:
commit
530d6d7195
1176 changed files with 111325 additions and 0 deletions
17
dot_oh-my-zsh/plugins/gitignore/README.md
Normal file
17
dot_oh-my-zsh/plugins/gitignore/README.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# gitignore
|
||||
|
||||
This plugin enables you the use of [gitignore.io](https://www.toptal.com/developers/gitignore) from the command line. You need an active internet connection.
|
||||
|
||||
To use it, add `gitignore` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... gitignore)
|
||||
```
|
||||
|
||||
## Plugin commands
|
||||
|
||||
* `gi list`: List all the currently supported gitignore.io templates.
|
||||
|
||||
* `gi [TEMPLATENAME]`: Show git-ignore output on the command line, e.g. `gi java` to exclude class and package files.
|
||||
|
||||
* `gi [TEMPLATENAME] >> .gitignore`: Appending programming language settings to your projects .gitignore.
|
12
dot_oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh
Normal file
12
dot_oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh
Normal file
|
@ -0,0 +1,12 @@
|
|||
function gi() { curl -fLw '\n' https://www.toptal.com/developers/gitignore/api/"${(j:,:)@}" }
|
||||
|
||||
_gitignoreio_get_command_list() {
|
||||
curl -sfL https://www.toptal.com/developers/gitignore/api/list | tr "," "\n"
|
||||
}
|
||||
|
||||
_gitignoreio () {
|
||||
compset -P '*,'
|
||||
compadd -S '' `_gitignoreio_get_command_list`
|
||||
}
|
||||
|
||||
compdef _gitignoreio gi
|
Loading…
Add table
Add a link
Reference in a new issue