aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-12-06 15:29:09 +1300
committerTom Ryder <tom@sanctum.geek.nz>2013-12-06 15:29:09 +1300
commit5f0e192eea6294f5e4ca032720e1cbb71b61f596 (patch)
treef2696a6421224d583f391c74f87e70a5adf3f36b /install
parentAdd comments to each install section (diff)
downloaddotfiles-5f0e192eea6294f5e4ca032720e1cbb71b61f596.tar.gz
dotfiles-5f0e192eea6294f5e4ca032720e1cbb71b61f596.zip
Make the mutt installation process nicer
In particular, warn about dependencies on abook(1) and msmtp(1)
Diffstat (limited to 'install')
-rwxr-xr-xinstall17
1 files changed, 17 insertions, 0 deletions
diff --git a/install b/install
index 375bb8b6..3cae463f 100755
--- a/install
+++ b/install
@@ -103,8 +103,25 @@ while getopts :dgmnrtx opt; do
# Mutt
m)
+ # Warn about some non-obvious dependencies if necessary
+ for depends in abook msmtp; do
+ if ! hash "$depends" 2>/dev/null; then
+ printf '%s: warning: %s(1) not found\n' \
+ "$self" "$depends" >&2
+ fi
+ done
+
+ # Link in files
lns "$dotfiles"/mutt/muttrc "$HOME"/.muttrc
lns "$dotfiles"/mutt "$HOME"/.mutt
+
+ # Create empty stubs if applicable
+ touch "$HOME"/.mutt/muttrc.local \
+ "$HOME"/.mutt/signature
+
+ # Create mailboxes and cache directories
+ mkdir -p "$HOME"/Mail/{inbox,sent} \
+ "$HOME"/.cache/mutt
;;
# Ncmcpp