• Stars
    star
    1,956
  • Rank 23,554 (Top 0.5 %)
  • Language
    Go
  • License
    The Unlicense
  • Created over 12 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🀫 Easy access to gitignore boilerplates

gibo: fast access to .gitignore boilerplates

CI

gibo (short for .gitignore boilerplates) is a shell script to help you easily access .gitignore boilerplates from github.com/github/gitignore.

Typical usage

$ gibo dump Swift Xcode >> .gitignore

For additional usage instructions, run gibo help.

Installation

Installation on OS X using Homebrew

brew install gibo

Installation on Fedora Linux

gibo is avaiable as a COPR repository. It provides packages for main script and bash / zsh completions:

dnf copr enable saschpe/gibo
dnf install gibo gibo-bash-completion gibo-zsh-completion

Installation on other (*nix) platforms

Just download gibo and put it somewhere on your $PATH. Then:

chmod +x /path/to/gibo   # Make gibo executable
gibo update              # Initialise gibo

You can automate this with the following one-liner (assuming ~/bin is on your $PATH).

curl -L https://raw.github.com/simonwhitaker/gibo/master/gibo \
    -so ~/bin/gibo && chmod +x ~/bin/gibo && gibo update

Installation on Windows

Using scoop

The easiest way to install gibo on Windows is to use scoop, a PowerShell-based package-manager of sorts for Windows:

scoop update
scoop install gibo

A great benefit to using scoop, is that it provides an easy way to update its packages, including gibo:

scoop update
scoop update gibo

git installation

You can download the whole gibo repo directly from GitHub:

md "C:\Users\<Your User>\bin"
cd /D "C:\Users\<Your User>\bin"
git clone https://github.com/simonwhitaker/gibo.git gibo

Then add the full gibo directory (C:\Users\<Your User>\bin\gibo) to your system's PATH environment variable.

Manual installation

To manually install only the gibo.bat file, download it to your computer and save it to any directory that is in your PATH.

Right-click this link and select 'Save target as...' (or 'Save link as...' depending on your browser) to save it to your computer.

A good directory to put the file is C:\Users\<Your User>\bin and add that directory to your system's PATH environment variable. Where ever you put it, make sure the batch file is accessible via where gibo.

Installation on Docker

Just type the following command.

$ docker run --rm simonwhitaker/gibo

Tab completion in bash, zsh and fish

bash, zsh and fish users can enjoy the deluxe gibo experience by enabling tab completion of available boilerplate names.

Sorry, there is no tab completion support in Windows.

bash instructions

Copy gibo-completion.bash into a bash_completion.d folder:

  • /etc/bash_completion.d
  • /usr/local/etc/bash_completion.d
  • ~/bash_completion.d

or copy it somewhere (e.g. ~/.gibo-completion.bash) and put the following in your .bashrc:

source ~/.gibo-completion.bash

zsh instructions

Copy gibo-completion.zsh somewhere in your $fpath. The convention for autoloaded functions used in completion is that they start with an underscore, so I suggest you rename it to _gibo.

Alternatively, you can use gibo-completion.zsh as an oh-my-zsh plugin by following these instructions.

fish instructions

Copy gibo.fish to somewhere in your $fish_complete_path.

Use gibo to generate .hgignore files

The glob .hgignore syntax for Mercurial is compatible with .gitignore syntax. This means that you can use gibo to generate .hgignore files, as long as the .hgignore files use the glob syntax:

echo 'syntax: glob' > .hgignore
$ gibo dump Python TextMate >> .hgignore

Credits

gibo was written by Simon Whitaker (@s1mn)

Thanks to yevgenko for adding the curl-based installation instructions.

Thanks to kodybrown for adding the gibo.bat batch file for Windows.

More Repositories

1

github-fork-ribbon-css

A CSS-only, resolution-independent "Fork me on GitHub" ribbon.
HTML
760
star
2

tween-o-matic

A Mac OS X app to help you design CAMediaTimingFunction curves
Objective-C
147
star
3

app-id-sanity

A browser extension to help manage App IDs in Apple's Provisioning Portal
JavaScript
126
star
4

wwdc-session-search

An OS X app for searching WWDC sessions
Objective-C
50
star
5

pihole-sync

A script for syncing whitelist and blacklist entries between multiple devices running Pi-hole (https://pi-hole.net)
Python
29
star
6

runny

🍯 Runny: a tool for running things
Go
16
star
7

uikit-dynamics-demo

UIKit Dynamics demo
Objective-C
14
star
8

fancypants

A collection of data visualisation trinkets
Python
14
star
9

ios-dev-tools

The software I use when I'm writing software
11
star
10

stable-diffusion-apple-silicon

A macOS app for running Stable Diffusion natively on Apple Silicon
Swift
4
star
11

swmath

CGFloat-friendly math functions
Python
4
star
12

finally-safari-ext

You'll get bored with it, but it's fun while it lasts.
JavaScript
4
star
13

tab-hint-demo

Demo project showing how to animate a "hint" view to a tab bar icon using gravity and physics and shit
Objective-C
4
star
14

ios-goodies

A collection of iOS widgets and other goodies
Objective-C
3
star
15

mapviewer-uiactivity-demo

An example iOS app that uses a UIActivity subclass
Objective-C
3
star
16

quiz-scraper

Python
2
star
17

WhyTunes

Objective-C
2
star
18

base64url

A command-line tool for encoding and decoding using the Base64 URL encoding scheme.
Python
2
star
19

goo-website

CSS
2
star
20

AutoLayoutModalBug

Objective-C
2
star
21

linter-checkbashisms

An Atom plugin that runs checkbashisms as a linter on shell scripts
CoffeeScript
2
star
22

shellsnake

Play Snake on the command line! πŸ˜„πŸ›πŸ›πŸ›
Go
2
star
23

dynamics-demo

A demonstration of UIKit dynamics
Objective-C
2
star
24

setuptools-demo

1
star
25

JWT-Tool

Swift
1
star
26

Timer

A simple countdown timer app for macOS
Swift
1
star
27

ios-compatibility

A data visualisation of max iOS version compatibility by iOS device
JavaScript
1
star
28

apple-pay-images-to-1password

JavaScript
1
star
29

classifier-viz

HTML
1
star
30

twirly-screensaver

Objective-C
1
star
31

memerbot

A Messenger bot for building memes
JavaScript
1
star
32

s1mn.io

1
star
33

GSActivityDemo

A sample Xcode 4 project demonstrating an apparent bug in presenting UIActivity activityViewControllers on iPad
Objective-C
1
star
34

Swift-Bag

An implementation of the bag (multiset) data structure in Swift
Swift
1
star
35

Angry-UIKit

The demo app used in my presentation at Alt Tech Talks London 2013
Objective-C
1
star
36

secondconf-2011-puzzle-screensaver

A Mac OS X screensaver based on the fiendish puzzle from Second Conf 2011
Objective-C
1
star