summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-21 20:42:39 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-21 20:42:39 -0400
commit148cc7e8321811d5103ccef22a7af5b020f60c01 (patch)
treeecb1390d6a11e548b23a7f503f66c8b6e9fc68ea
parent46f91c5f712c96331315d420430105c960418460 (diff)
no bin
-rwxr-xr-xbin/mw (renamed from mw)2
-rw-r--r--mailcap (renamed from bin/mailcap)6
2 files changed, 3 insertions, 5 deletions
diff --git a/mw b/bin/mw
index 94874bf..6f2934f 100755
--- a/mw
+++ b/bin/mw
@@ -1,7 +1,5 @@
#!/bin/sh
muttdir="$HOME/.config/mutt" # Main mutt config location
-bindir="$HOME/.config/mutt/bin" # Location of scripts run by mutt or the wizard
-[ ! -f "$muttdir/domains.csv" ] || [ ! -d "$bindir" ] && printf "Read the README. Be sure to put the repo in the right place before running.\\n" && exit 1
[ ! -f "$HOME/.password-store/.gpg-id" ] && printf "\`pass\` must be installed and initialized to encrypt passwords.\\nBe sure it is installed and run \`pass init <yourgpgemail>\`.\\nIf you don't have a GPG public private key pair, run \`gpg --full-gen-key\` first.\\n" && exit
accdir="$muttdir/accounts" # Directory for account settings
maildir="$HOME/.local/share/mail" # Location of mail storage
diff --git a/bin/mailcap b/mailcap
index 6dcca4d..20b8534 100644
--- a/bin/mailcap
+++ b/mailcap
@@ -1,7 +1,7 @@
text/plain; vim %s ;
-text/html; ~/.config/mutt/bin/openfile %s ;
+text/html; openfile %s ;
text/html; w3m -I %{charset} -T text/html; copiousoutput;
-image/*; ~/.config/mutt/bin/muttimage %s ; copiousoutput
+image/*; muttimage %s ; copiousoutput
video/*; setsid mpv --quiet %s &; copiousoutput
-application/pdf; ~/.config/mutt/bin/openfile %s ;
+application/pdf; openfile %s ;
application/pgp-encrypted; gpg -d '%s'; copiousoutput;