diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-12-06 15:29:09 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-12-06 15:29:09 +1300 |
commit | 5f0e192eea6294f5e4ca032720e1cbb71b61f596 (patch) | |
tree | f2696a6421224d583f391c74f87e70a5adf3f36b | |
parent | Add comments to each install section (diff) | |
download | dotfiles-5f0e192eea6294f5e4ca032720e1cbb71b61f596.tar.gz dotfiles-5f0e192eea6294f5e4ca032720e1cbb71b61f596.zip |
Make the mutt installation process nicer
In particular, warn about dependencies on abook(1) and msmtp(1)
-rwxr-xr-x | install | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |