aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bashrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 57f79fb..6229539 100644
--- a/.bashrc
+++ b/.bashrc
@@ -19,6 +19,12 @@ unset file
# Add tab completion
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
+# Shortcut for markdown preview
+md() {
+ pandoc -f markdown -t html \
+ -o /tmp/md-preview.html "$1" && firefox /tmp/md-preview.html
+}
+
# Use gpg-agent like SSH agent (https://wiki.archlinux.org/title/GnuPG#SSH_agent)
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then