From d2c521cca4d4c2386b7ac02384d40db902256061 Mon Sep 17 00:00:00 2001 From: Pratik Tripathy Date: Wed, 18 Sep 2024 19:42:56 +0530 Subject: [PATCH] fix(install): pkcon available on dnf as well: hack to fix "up" - Add more steps to post-install --- common/.config/kitty/kitty.conf | 1 + linux/.config/shell/aliases_linux.sh | 6 +++--- scripts/install.sh | 4 ++++ scripts/package-list-os | 1 + 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/common/.config/kitty/kitty.conf b/common/.config/kitty/kitty.conf index f8b4704..7432c16 100644 --- a/common/.config/kitty/kitty.conf +++ b/common/.config/kitty/kitty.conf @@ -3,6 +3,7 @@ # TODO: # - Display current directory on OS title: even when nvim or any other forground app is running # - [/] to decrease/increase split size +# - Use Konsole shortcuts for creating splits and moving between them as well #: Fonts {{{ diff --git a/linux/.config/shell/aliases_linux.sh b/linux/.config/shell/aliases_linux.sh index fc8db6a..b3707a2 100644 --- a/linux/.config/shell/aliases_linux.sh +++ b/linux/.config/shell/aliases_linux.sh @@ -15,12 +15,12 @@ up(){ update_command="" # Detect package manager and set package manager commands - if command -v pkcon > /dev/null; then + if command -v dnf > /dev/null 2>&1; then + update_command="sudo dnf upgrade --refresh && sudo dnf system-upgrade download --releasever=$(rpm -E %fedora) && sudo dnf autoremove" + elif command -v pkcon > /dev/null 2>&1; then update_command="sudo pkcon refresh && sudo pkcon update && sudo apt dist-upgrade && sudo apt autoremove" elif command -v apt-get > /dev/null 2>&1; then update_command="sudo apt-get update && sudo apt-get upgrade && sudo apt dist-upgrade && sudo apt autoremove" - elif command -v dnf > /dev/null 2>&1; then - update_command="sudo dnf upgrade --refresh && sudo dnf system-upgrade download --releasever=$(rpm -E %fedora) && sudo dnf autoremove" fi eval "$update_command" diff --git a/scripts/install.sh b/scripts/install.sh index af8c10b..f861735 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -39,6 +39,10 @@ post_install() { fi rm -rf ~/.cache + + up + zsh + nvim } pre_install() { diff --git a/scripts/package-list-os b/scripts/package-list-os index 5d7194e..47b6905 100644 --- a/scripts/package-list-os +++ b/scripts/package-list-os @@ -20,6 +20,7 @@ curl evolution-ews dolphin dolphin-plugins +dnscrypt-proxy aspnetcore-runtime-8.0 dotnet-sdk-8.0 dotnet-runtime-8.0