From af36cfcba4fdaf287e64de0bee36a15e2e9ecca6 Mon Sep 17 00:00:00 2001 From: askiiart Date: Wed, 28 Feb 2024 13:14:13 -0600 Subject: [PATCH] Updat claws mail and VS code --- dotfiles | 2 +- install-stuff/install-claws-mail.bash | 20 ++++++++++++++++++++ install-stuff/install-vs-code.bash | 4 ++-- 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 install-stuff/install-claws-mail.bash diff --git a/dotfiles b/dotfiles index f3d1817..93a1283 160000 --- a/dotfiles +++ b/dotfiles @@ -1 +1 @@ -Subproject commit f3d181729ebb0ab94dc384fd64c17ca651a792c5 +Subproject commit 93a12833fa585887298d87d431f885c10cf0a404 diff --git a/install-stuff/install-claws-mail.bash b/install-stuff/install-claws-mail.bash new file mode 100644 index 0000000..f843777 --- /dev/null +++ b/install-stuff/install-claws-mail.bash @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +EDITOR=nano + +if [ $(whoami) == "root" ]; then + echo "Run as a normal user, not root" + exit 1 +fi + +command_exists() { type "$1" &>/dev/null; } + +if command_exists "yay"; then + yay -S claws-mail python-gpgme nuspell aspell aspell-en + yay -S spamassassin + sudo systemctl enable --now spamassassin.service + cd ~ + git clone https://git.askiiart.net/askiiart/gpg-email-helper + cd - +else + echo "IDK" +fi diff --git a/install-stuff/install-vs-code.bash b/install-stuff/install-vs-code.bash index c587573..b4da50e 100755 --- a/install-stuff/install-vs-code.bash +++ b/install-stuff/install-vs-code.bash @@ -21,8 +21,8 @@ elif command_exists "yum"; then sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' yum check-update sudo yum install code -y -elif command_exists "pacman"; then - yay -S visual-studio-code-bin --noconfirm --needed +elif command_exists "yay"; then + yay -S visual-studio-code-bin clang-format-static-bin --noconfirm --needed elif command_exists "zypp"; then # Untested sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc