From f47a1f56f55d69b42880a39b0421ff542e322a08 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 2 Nov 2024 21:18:00 +0100 Subject: [PATCH] Add scripts for backing up the home --- scripts/Arch/lib/deploy.fish | 1 + scripts/Common/Software/linux/main.fish | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 scripts/Common/Software/linux/main.fish diff --git a/scripts/Arch/lib/deploy.fish b/scripts/Arch/lib/deploy.fish index 309ca0b2..6998d6b0 100644 --- a/scripts/Arch/lib/deploy.fish +++ b/scripts/Arch/lib/deploy.fish @@ -80,6 +80,7 @@ function deploySoftware -d "Deploys a the specified software action" -a action and source "$dir/../Software/git/main.fish" $argv and source "$dir/../Software/zoxide/main.fish" $argv and source "$dir/../Software/logo-ls/main.fish" $argv + and source "$dir/../../Common/Software/linux/main.fish" $argv # GRUB Shenanigans - if that's not essential I don't know what is! and source "$dir/../Software/minegrub-theme/main.fish" $argv diff --git a/scripts/Common/Software/linux/main.fish b/scripts/Common/Software/linux/main.fish new file mode 100644 index 00000000..cf6e2c32 --- /dev/null +++ b/scripts/Common/Software/linux/main.fish @@ -0,0 +1,10 @@ +#!/bin/env fish +begin + set -l dir (status dirname) + source "$dir/../../../lib/software.fish" + + function getUserBackupArgs + argparse -i "user=" -- $argv + printf "%s\n" --base-directory ~"$_flag_user" --exact-depth 1 --hidden "^(\\.ssh|[^.])" --exclude "Games" --exclude "Desktop" ~ --exec fd . {} + end +end