From 303c0fa42eb70a5f5d06997de6c52a5908e4d488 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Thu, 21 Aug 2014 10:58:26 +0200 Subject: bashrc: Use gitignore.io to generate the contents for a gitignore file. --- bashrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bashrc') diff --git a/bashrc b/bashrc index ab82a35..bb899ce 100644 --- a/bashrc +++ b/bashrc @@ -87,6 +87,11 @@ function manpdf() { man -t "$1" | ps2pdf - "$1.pdf" } +# Generate the contents for a .gitignore file. +function gi() { + curl http://www.gitignore.io/api/$@ +} + # Finally get RVM straight. [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" -- cgit v1.2.3