aboutsummaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2014-08-21 10:58:26 +0200
committerMiquel Sabaté <mikisabate@gmail.com>2014-08-21 10:58:26 +0200
commit303c0fa42eb70a5f5d06997de6c52a5908e4d488 (patch)
tree713bd3ac656dfd19db76d677d53724c9dc59152e /bashrc
parent81573b7170185da9bfd5dfeb38a31c462a47f7b3 (diff)
downloaddotfiles-303c0fa42eb70a5f5d06997de6c52a5908e4d488.tar.gz
dotfiles-303c0fa42eb70a5f5d06997de6c52a5908e4d488.zip
bashrc: Use gitignore.io to generate the contents for a gitignore file.
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc5
1 files changed, 5 insertions, 0 deletions
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"