mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
feat: Adds mail as a submodule, updates dev-env script to also install / update email config.
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "mail"]
|
||||
path = mail
|
||||
url = ssh://git@git.housh.dev:2222/michael/mail.git
|
||||
13
dev-env
13
dev-env
@@ -101,6 +101,16 @@ copy_files() {
|
||||
popd &>/dev/null || exit 1
|
||||
}
|
||||
|
||||
email() {
|
||||
if command -v mailctl; then
|
||||
log "Updating using mailctl..."
|
||||
[[ $dry_run == "0" ]] && mailctl update && mailctl config
|
||||
else
|
||||
log "Installing mailctl..."
|
||||
[[ $dry_run == "0" ]] && . "$DEV_ENV/mail/install"
|
||||
fi
|
||||
}
|
||||
|
||||
############################## MAIN ##############################
|
||||
|
||||
# CONFIG
|
||||
@@ -154,6 +164,9 @@ copy_files $DEV_ENV/env/.local/share/applications/icons $XDG_DATA_HOME/applicati
|
||||
mkdir $HOME/pkgbuilds
|
||||
update_dirs $DEV_ENV/env/pkgbuilds $HOME/pkgbuilds
|
||||
|
||||
# Email.
|
||||
email
|
||||
|
||||
if [[ $dry_run == "0" ]]; then
|
||||
systemctl --user daemon-reload
|
||||
hyprctl reload
|
||||
|
||||
1
mail
Submodule
1
mail
Submodule
Submodule mail added at 013f3c7c18
Reference in New Issue
Block a user