From 9885850fce4b8c16cdcb7e5a189801c7355c70e9 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 13 Jul 2024 18:36:24 +0200 Subject: [PATCH] Add scripts for maintaining software installation --- scripts/Arch/Scripts/software.fish | 13 +++++++++++++ scripts/Common/Scripts/software.fish | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 scripts/Arch/Scripts/software.fish create mode 100644 scripts/Common/Scripts/software.fish diff --git a/scripts/Arch/Scripts/software.fish b/scripts/Arch/Scripts/software.fish new file mode 100644 index 00000000..7c9d742d --- /dev/null +++ b/scripts/Arch/Scripts/software.fish @@ -0,0 +1,13 @@ +#!/bin/env fish +begin + set -l dir (status dirname) + source "$dir/../../Common/Scripts/software.fish" + + function yay -d "Install yay-package non-interactively" + command yay --noconfirm --needed --answerclean=None --answerdiff=None $argv + end + + function pacinst -d "Install pacman-package non-interactively" + sudo pacman --noconfirm --needed $argv + end +end diff --git a/scripts/Common/Scripts/software.fish b/scripts/Common/Scripts/software.fish new file mode 100644 index 00000000..9a29fc9b --- /dev/null +++ b/scripts/Common/Scripts/software.fish @@ -0,0 +1,16 @@ +#!/bin/env fish +begin + function installSW + end + + function configureSW + end + + function runInstaller -a action + if [ -z "$action" ] || [ "$action" = "install" ] + installSW + else [ "$action" = "configure" ] + configureSW + end + end +end