dotfiles

Author: Kyle Fuller <inbox@kylefuller.co.uk> 2012-02-13 03:04:24 +0000 +0000
Committer: Kyle Fuller <inbox@kylefuller.co.uk> 2012-02-13 03:04:24 +0000 +0000
Commit: 6a98c6f5f045cae6e3415c3d9f8f85d72b520d8d
Parent: d7de11898e1c43fe6651a52a5647e963ba6ea9d9


Add some git aliases
diff --git a/.gitconfig b/.gitconfig
index 7ab02c7d9a9ad09ea32383f39f675c6467305e05..ce0f0309f16fcb2c1afc6ceea08572a6dbe47089 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -7,3 +7,8 @@     excludesfile = ~/.gitignore
 
 [color]
     ui = auto
+
+[alias]
+    up = pull --rebase
+    wip = commit -m 'wip'
+
diff --git a/.rc b/.rc
index 6b248c8856a6c6e51d70bb20113bf7dabc389fe9..0fc1f7fffb95e52bb67f9b704ac702cda339b83c 100644
--- a/.rc
+++ b/.rc
@@ -35,10 +35,15 @@
 # wg <filename> <url>
 alias wg="wget -O"
 
-alias sprunge="curl -F 'sprunge=<-' http://sprunge.us"
+alias snip="curl -F 'paste=<-' http://s.herokuapp.com"
 
 sprungef() {
-  curl -F "sprunge=@$1" http://sprunge.us
+  curl -F "paste=@$1" http://s.herokuapp.com
+}
+
+alias gsnip='git diff | snip'
+gapp() {
+  curl $1 | git apply
 }
 
 # Source a local .profile if it exists