blob: 909b17094476aeea301aafc7308104bff73c0198 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/bash
# Upgrade system
sudo pacman -Syu
# Remove orphans
mapfile -t orphans < <(pacman -Qdttq)
if (( ${#orphans[@]} )); then
sudo pacman -Rns "${orphans[@]}"
fi
# Update Neovim plugins
if [[ -d ~/.config/nvim/pack/ ]]; then
find ~/.config/nvim/pack/ -name .git -type d -print -execdir git pull \;
fi
|