Compare commits
2 commits
4a4721dbcc
...
d5182d4a7c
Author | SHA1 | Date | |
---|---|---|---|
|
d5182d4a7c | ||
|
2146a3e797 |
1 changed files with 7 additions and 3 deletions
|
@ -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'
|
||||
|
@ -32,9 +37,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
|
||||
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue