This repository has been archived on 2024-09-06. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
dotinstall/examples/mail_bootstap

42 lines
1.3 KiB
Text

# This is an example of a bootstrap file for mail dotfile
# here is the strucure of files :
#
# .
# ├── bin
# │   └── check_mails.sh
# ├── bootstrap
# ├── config
# │   ├── afw
# │   │   └── config
# │   ├── mbsync
# │   │   └── config
# │   ├── msmtp
# │   │   └── config
# │   ├── neomutt
# │   │   ├── base16.muttrc
# │   │   ├── keybinding.neomuttrc
# │   │   ├── mailcap
# │   │   └── neomuttrc
# │   └── notmuch
# │   └── config
# ├── README.md
# └── services
# ├── mail.service
# └── mail.timer
# check required executables
check_bin "neomutt notmuch mbsync afew msmtp"
# symblink folder which contains configurations folders to $HOME/.config/
process_dirs config ${HOME}/.config
# Symblink and install systemd services, first the service that doesn't need to
# be activated then the timer which need
install_service "services/mail.service"
install_service "services/mail.timer" 1
# Symblink an executable to $HOME\.local\bin\
install_bin "bin/check_mails.sh"
# Define the environment variable for Notmuch
define_env "NOTMUCH_CONFIG" "~/.config/notmuch"