diff rc/bashrc @ 402:a23b0f6ee8a2

Add alias for zeropaste posting.
author Edho Arief <edho@myconan.net>
date Mon, 08 Oct 2012 08:41:58 +0700
parents 657f787fbae8
children d0f9e435d36d
line wrap: on
line diff
--- a/rc/bashrc	Tue Sep 04 09:30:40 2012 +0700
+++ b/rc/bashrc	Mon Oct 08 08:41:58 2012 +0700
@@ -233,4 +233,8 @@
 fi
 unset _rm
 
+if command -v curl > /dev/null 2>&1; then
+  alias 0p="curl 'http://0paste.com/pastes.txt' -F 'paste[paste]=<-'"
+fi
+
 [ -f "${HOME}/.ecos_bash.after" ] && . "${HOME}/.ecos_bash.after"