From 8beaf9fe92e3637986a4d7adea5a6c5a633a07c8 Mon Sep 17 00:00:00 2001 From: Jake Pullen Date: Wed, 15 Oct 2025 17:52:35 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=94=92Added=20update=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- updater.sh | 18 ++++++++++++++++++ zsh/.histfile | 21 +++++++++++++++++++++ zsh/.zshrc | 2 +- 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100755 updater.sh diff --git a/updater.sh b/updater.sh new file mode 100755 index 0000000..780559d --- /dev/null +++ b/updater.sh @@ -0,0 +1,18 @@ +# !bin/bash +echo Doing some updates! +echo Checking for dnf updates... + +sudo dnf update -y + +echo Checking for flatpak updates... + +sudo flatpak update -y + +echo Doing a quick clean up... + +sudo dnf clean all + +echo Checking if we need a restart... + +sudo dnf needs-restarting + diff --git a/zsh/.histfile b/zsh/.histfile index 3c7c449..9767512 100644 --- a/zsh/.histfile +++ b/zsh/.histfile @@ -1062,3 +1062,24 @@ logout : 1760546429:0;nvim dotfiles/zsh/.zshrc : 1760546457:0;cd dotfiles : 1760546460:0;git add . +: 1760546462:0;git commit +: 1760546504:0;git push +: 1760546516:0;sudo flatpak update -y +: 1760546524:0;updatepls +: 1760546541:0;nvim . +: 1760546642:0;flatpak -h +: 1760546658:0;dnf -h +: 1760546722:0;dnf clean +: 1760546731:0;clean --help +: 1760546736:0;dnf clean --help +: 1760546754:0;dnf clean cache_types all +: 1760546764:0;dnf clean all +: 1760546788:0;dnf needs_restarting +: 1760546807:0;sudo dnf needs_restarting +: 1760546819:0;sudo dnf needs-restarting +: 1760546914:0;flatpak --help +: 1760546961:0;chmod +x updater.sh +: 1760546966:0;./updater.sh +: 1760547002:0;nvim . +: 1760547043:0;updatepls +: 1760547151:0;git add . diff --git a/zsh/.zshrc b/zsh/.zshrc index a8cc04f..68d4db1 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -32,6 +32,6 @@ alias ..='cd ..' alias la='ls -la' alias wake_up='cd source/ai_web && ./run.sh & ~/AppImages/LM-Studio.AppImage &' -alias updatepls='sudo dnf update -y && sudo flatpak update -y' +alias updatepls='~/dotfiles/updater.sh' fastfetch