summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2021-01-07 18:53:05 -0600
committerMark Powers <mark@marks.kitchen>2021-01-07 18:53:05 -0600
commit8e44b9233932ec01d7b54845ffe37334a747f1cb (patch)
treed769c8b1fcd9d7d2714268527d807103c1578e25
parentd3ef07f982ca8349d27f638ec252178170b2ceff (diff)
Move functions to bin/
-rw-r--r--.bashrc17
-rwxr-xr-xbin/mail11
-rwxr-xr-xbin/show_markdown3
3 files changed, 14 insertions, 17 deletions
diff --git a/.bashrc b/.bashrc
index 943660e..42e56b8 100644
--- a/.bashrc
+++ b/.bashrc
@@ -159,20 +159,3 @@ PROMPT_COMMAND='history -a'
source $HOME/.cargo/env
-# compile a markdown file, and display it in a browser (surf)
-show_markdown () {
- pandoc $1 > /tmp/show_markdown.html; surf /tmp/show_markdown.html
-}
-
-mail () {
- sel=$(iselect -a 'kitchen' 'cafe')
- case $sel in
- kitchen)
- neomutt -F ~/.muttrc_kitchen
- ;;
- cafe)
- neomutt -F ~/.muttrc_cafe
- ;;
- esac
-}
-
diff --git a/bin/mail b/bin/mail
new file mode 100755
index 0000000..00236ed
--- /dev/null
+++ b/bin/mail
@@ -0,0 +1,11 @@
+#!/bin/bash
+sel=$(iselect -a 'kitchen' 'cafe')
+case $sel in
+ kitchen)
+ neomutt -F ~/.muttrc_kitchen
+ ;;
+ cafe)
+ neomutt -F ~/.muttrc_cafe
+ ;;
+esac
+
diff --git a/bin/show_markdown b/bin/show_markdown
new file mode 100755
index 0000000..553c568
--- /dev/null
+++ b/bin/show_markdown
@@ -0,0 +1,3 @@
+#!/bin/bash
+pandoc $1 > /tmp/show_markdown.html; surf /tmp/show_markdown.html
+