Skip to content

handlename/go-get-git-ignore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-get-git-ignore

Fetch and save .gitignore file from github/gitignore quickly.

Usage

$ get-git-ignore --lang=Go
$ ls -a
.gitignore
  • --lang: Language for .gitignore.
  • --out: Path to save .gitignore file. Default is .gitignore.

Installation

$ go get github.com/handlename/go-get-git-ignore/cmd/get-git-ignore

Example

Using with peco, you can filter candidates interactively. Install peco and put like below to your .zshrc file.

function _peco_ggi_list () {
    lang=$(get-git-ignore | peco)

    if [ -n "$lang" ]; then
        get-git-ignore --lang=$lang
    fi
}
alias ggi=_peco_ggi_list

Licence

MIT

Author

handlename

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published