From 2146a3e7974ad328cc0fe86ce7fe22bf19500719 Mon Sep 17 00:00:00 2001 From: Tony Blyler <tony.blyler@cbinsights.com> Date: Thu, 16 Dec 2021 09:45:54 -0500 Subject: [PATCH 1/2] update nvim upgrade command to use Paq --- home/.zshrc.d/upgrade_system.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/home/.zshrc.d/upgrade_system.sh b/home/.zshrc.d/upgrade_system.sh index afa99c1..8537e85 100755 --- a/home/.zshrc.d/upgrade_system.sh +++ b/home/.zshrc.d/upgrade_system.sh @@ -32,9 +32,8 @@ upgrade_system() { ;; esac - if command -v vim &> /dev/null; then - vim -c 'PlugUpgrade | q' - vim -c 'PlugUpdate | sleep 3 | qa' + if command -v nvim &> /dev/null; then + nvim -c 'PaqSync' -c 'sleep 5' -c 'qa' fi ( From d5182d4a7cf58e697a21310360f379573ef52995 Mon Sep 17 00:00:00 2001 From: Tony Blyler <tony.blyler@cbinsights.com> Date: Thu, 16 Dec 2021 09:47:24 -0500 Subject: [PATCH 2/2] Add Flatpak to upgrade_system --- home/.zshrc.d/upgrade_system.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/.zshrc.d/upgrade_system.sh b/home/.zshrc.d/upgrade_system.sh index 8537e85..8111ad8 100755 --- a/home/.zshrc.d/upgrade_system.sh +++ b/home/.zshrc.d/upgrade_system.sh @@ -13,6 +13,11 @@ upgrade_system() { ;; 'linux') + # Flatpak (could be just about any distro) + if command -v flatpak &> /dev/null; then + flatpak update + fi + # Debian/Ubuntu if command -v apt &> /dev/null; then sudo sh -c 'apt update && apt upgrade'