summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-08-05 19:08:27 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-08-05 19:08:27 +0900
commitb8abb4e0186c98cd5fe58dcb21869c4bd56c78f4 (patch)
treee5a69b60e7e59ed153ee332ec48123daed3c819a
parentfde25f28504cf0cb58786e962531dde40591dae1 (diff)
Init
-rwxr-xr-xpublic/thesiah.sh10
-rwxr-xr-xstatic/thesiah.sh10
2 files changed, 6 insertions, 14 deletions
diff --git a/public/thesiah.sh b/public/thesiah.sh
index 2690c96..b0796aa 100755
--- a/public/thesiah.sh
+++ b/public/thesiah.sh
@@ -776,13 +776,9 @@ EndSection' > /etc/X11/xorg.conf.d/20-intel.conf
Option "Tapping" "on"
EndSection' >/etc/X11/xorg.conf.d/40-libinput.conf
-# Update addressbook config path in muttrc
-awk '
- /^set query_command = "abook --mutt-query/ {
- gsub(/abook --mutt-query/, "abook --datafile ~/.config/abook/addressbook --mutt-query")
- }
- { print }
-' /usr/share/mutt-wizard/mutt-wizard.muttrc >/tmp/mutt-wizard.muttrc.tmp && mv /tmp/mutt-wizard.muttrc.tmp /usr/share/mutt-wizard/mutt-wizard.muttrc
+# Update muttrc for abook config path and thesiah's muttrc
+grep -q "thesiah.muttrc" /home/"$name"/.config/mutt/muttrc || \
+ sed -i "/source \/usr\/share\/mutt-wizard\/mutt-wizard\.muttrc/source \/home\/$name\/.config\/mutt\/thesiah\.muttrc" /home/"$name"/.config/mutt/muttrc
[ ! -f /usr/share/libalpm/hooks/statusbar.hook ] && printf '[Trigger]
Operation = Upgrade
diff --git a/static/thesiah.sh b/static/thesiah.sh
index 2690c96..b0796aa 100755
--- a/static/thesiah.sh
+++ b/static/thesiah.sh
@@ -776,13 +776,9 @@ EndSection' > /etc/X11/xorg.conf.d/20-intel.conf
Option "Tapping" "on"
EndSection' >/etc/X11/xorg.conf.d/40-libinput.conf
-# Update addressbook config path in muttrc
-awk '
- /^set query_command = "abook --mutt-query/ {
- gsub(/abook --mutt-query/, "abook --datafile ~/.config/abook/addressbook --mutt-query")
- }
- { print }
-' /usr/share/mutt-wizard/mutt-wizard.muttrc >/tmp/mutt-wizard.muttrc.tmp && mv /tmp/mutt-wizard.muttrc.tmp /usr/share/mutt-wizard/mutt-wizard.muttrc
+# Update muttrc for abook config path and thesiah's muttrc
+grep -q "thesiah.muttrc" /home/"$name"/.config/mutt/muttrc || \
+ sed -i "/source \/usr\/share\/mutt-wizard\/mutt-wizard\.muttrc/source \/home\/$name\/.config\/mutt\/thesiah\.muttrc" /home/"$name"/.config/mutt/muttrc
[ ! -f /usr/share/libalpm/hooks/statusbar.hook ] && printf '[Trigger]
Operation = Upgrade