summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAyman Bagabas <ayman.bagabas@gmail.com>2019-07-01 18:14:16 -0400
committerAyman Bagabas <ayman.bagabas@gmail.com>2019-07-01 18:34:07 -0400
commitcd5fd9bde283454bb64549bb064ecd3d50500d23 (patch)
treeedba53d659bb2f747bac5c0aaeceb79f025cf754 /bin
parent86cd3ad33f6e6453db54e7cd507e85ec0da32055 (diff)
Make use of PREFIX environment variable
This patch puts the environment variable PREFIX in more use. If specified, mull-wizard Makefile substitute all instances of prefix with the provided environment variable. Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mw6
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/mw b/bin/mw
index 651dd90..3268fa5 100755
--- a/bin/mw
+++ b/bin/mw
@@ -8,11 +8,7 @@ command -V gpg >/dev/null 2>&1 && GPG="gpg" || GPG="gpg2"
}
! command -v mbsync >/dev/null && printf "\`mbsync\` must be installed to run mutt-wizard.\\n" && exit
-case "$(uname)" in
- Linux) prefix="/usr" ;;
- *) prefix="/usr/local" ;;
-esac
-
+prefix="/usr/local"
muttdir="$HOME/.config/mutt" # Main mutt config location
accdir="$muttdir/accounts" # Directory for account settings
maildir="$HOME/.local/share/mail" # Location of mail storage