gignr
is a powerful CLI tool designed to help developers fetch, manage, and create .gitignore
templates with ease. It integrates templates from GitHub, TopTal, and user-defined repositories.
- 📦 Fetch
.gitignore
templates from:GitHub
GitHub Global
GitHub Community
TopTal
- Custom user-defined repositories
- 🔍 TUI-powered template search with filtering and selection.
- ⚡ Merge multiple templates into a single
.gitignore
file. - 💾 Save and manage
.gitignore
templates locally. - 🛠️ Highly configurable via
config.yaml
.
-
Using Go 🐹
go install github.com/jasonuc/gignr@latest
-
Using Homebrew 🍺
brew tap jasonuc/tap && brew install gignr
gignr create gh:Go tt:clion best_go_gitignore
gh:
→ Fetch from GitHubghg:
→ Fetch from GitHub Globalghc:
→ Fetch from GitHub Communitytt:
→ Fetch from TopTal- (No prefix) → Fetch from locally saved templates
gignr add https://github.com/jasonuc/gitignore-templates -n jc
-n myrepo
sets a nickname for the repository.
gignr search
- Navigate sources:
←/→
,tab
- Select template:
Enter
- Filter templates: Start typing
- Copy command to generate selection:
Shift + C
- Exit:
Ctrl + C
gignr save best_go_gitignore
- Saves
.gitignore
from the current directory to local storage. - Storage path is configurable in
config.yaml
.
Located at: ~/.config/gignr/config.yaml
templates:
storage_path: "~/.config/gignr/templates"
repositories:
jc: "https://github.com/jasonuc/gitignore-templates"
Contributions are welcome!
Fork the repo, make your changes, and open a Pull Request 🚀
This project is licensed under the MIT License.