LinuxCommandLibrary

gibo

Generate .gitignore files for projects

TLDR

List available boilerplates

$ gibo list
copy

Write a boilerplate to stdout
$ gibo dump [boilerplate]
copy

Write a boilerplate to .gitignore
$ gibo dump [boilerplate] >>[.gitignore]
copy

Search for boilerplates containing a given string
$ gibo search [string]
copy

Update available local boilerplates
$ gibo update
copy

SYNOPSIS

gibo [OPTION]... [IGNORE]...
Dumps .gitignore boilerplate(s) to stdout.

PARAMETERS

-h, --help
    Print help message and exit

-l, --list
    List all cached boilerplate names

-u, --update
    Fetch and update boilerplate list from GitHub

--version, -V
    Print gibo version

IGNORE
    One or more boilerplate names (e.g., Node, Python); no args uses defaults

DESCRIPTION

Gibo is a lightweight shell script that simplifies creating .gitignore files by pulling boilerplate templates from the official GitHub gitignore repository. It caches a list of over 500 available templates for languages, IDEs, OSes, and tools like Node.js, Python, VisualStudioCode, and macOS.

Run gibo -l to list templates, gibo -u to refresh the cache from GitHub, or gibo Node Python to output combined content to stdout. Pipe to .gitignore for use: gibo JetBrains >> .gitignore. Without arguments, it outputs curated defaults (e.g., Global/Vim, macOS, Windows).

The cache lives at ~/.gibo, enabling offline use after initial setup. Ideal for quick project initialization, gibo avoids manual copying and ensures up-to-date ignores. Install via curl -Ls gibo.me | bash; it self-installs to ~/.gibo and can be sourced in shell profiles.

CAVEATS

Not a standard distro package; requires manual install. Cache may lag if not updated. Templates are case-sensitive.

INSTALLATION

curl -Ls gibo.me | bash
source ~/.bashrc (or add 'source ~/.gibo' to ~/.bashrc)

EXAMPLES

gibo -l (list templates)
gibo Node > .gitignore
gibo Global/Vim macOS >> .gitignore
gibo (dumps defaults)

HISTORY

Created by Simon Whitaker in 2013 as 'gitignore-boilerplate'. Renamed gibo, now at v2.x. Mirrors GitHub/gitignore repo growth from ~100 to 500+ templates.

SEE ALSO

git(1)

Copied to clipboard