summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bashrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 5bcf568..ab12158 100644
--- a/bashrc
+++ b/bashrc
@@ -46,3 +46,10 @@ alias gonest="ssh -K nest.smfc.twitter.com"
[ -d "/opt/twitter/opt/go/libexec/bin" ] && PATH="/opt/twitter/opt/go/libexec/bin:${PATH}"
[ -d "/opt/twitter/bin" ] && PATH="/opt/twitter/bin:${PATH}"
[ -f /opt/twitter/rvm/scripts/rvm ] && source /opt/twitter/rvm/scripts/rvm
+
+md_prev() {
+ FILE="${1}"
+ pandoc -f markdown_github \
+ -c https://goo.gl/OVmlwT \
+ --self-contained "${FILE}" > /tmp/md_prev && open /tmp/md_prev
+}