diff --git a/configs/arch_config.fish b/configs/arch_config.fish index 55391ab..d844d89 100755 --- a/configs/arch_config.fish +++ b/configs/arch_config.fish @@ -36,11 +36,16 @@ function updateall set kernel_version (get_pkg_version (kernel_to_pkg)) ######## Run PACMAN updates + set_color cyan + echo "#### Updating pacman ####" + set_color normal sudo pacman -Syu ######## Do additional Discord Updates if test "$discord_version" != "$(get_pkg_version discord)" + set_color cyan echo "Discord version changed: $discord_version_before -> $discord_version_after" + set_color normal if test -e /usr/bin/curl echo "Running Vencord installer..." sh -c "$(curl -sS https://raw.githubusercontent.com/Vendicated/VencordInstaller/main/install.sh)" @@ -52,23 +57,35 @@ function updateall ######## Run FLATPAK Updates if test -e /usr/bin/flatpak + set_color cyan + echo "#### Updating flatpak ####" + set_color normal flatpak update end ######## Run GIT Updates + set_color cyan + echo "#### Updating quickshell ####" + set_color normal if test -d ~/.config/quickshell && test -d ~/.config/quickshell/.git pushd ~/.config/quickshell/ git pull popd end + set_color cyan + echo "#### Updating fish ####" + set_color normal if test -d ~/.config/fish && test -d ~/.config/fish/.git pushd ~/.config/fish/ git pull popd end + set_color cyan + echo "#### Updating hyprland ####" + set_color normal if test -d ~/.config/hypr && test -d ~/.config/hypr/.git pushd ~/.config/hypr/ git pull @@ -77,6 +94,9 @@ function updateall ######## Run AUR Updates + set_color cyan + echo "#### Updating AUR ####" + set_color normal if test -e /usr/bin/paru paru -Sua --sudoloop else if test -e /usr/bin/yay @@ -86,10 +106,10 @@ function updateall ######## Restart if Kernel Updated if test "$kernel_version" != "$(get_pkg_version $(kernel_to_pkg))" + set_color cyan echo "Kernel changed: $kernel_version_before -> $kernel_version_after" - echo "Reboot now? [y/N]: " - - read answer + read -P "Reboot now? [y/N]: " answer + set_color normal if test "$answer" = "y" -o "$answer" = "Y" reboot