commit 6bf4c8fbf5d29ca00cf61523924fe998a88a8f1e parent c10412848d86748eda18278c9684b0274dd631a6 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 14 Nov 2019 12:00:33 +0100 Remove uu script Diffstat:
D | .local/bin/uu | | | 94 | ------------------------------------------------------------------------------- |
1 file changed, 0 insertions(+), 94 deletions(-)
diff --git a/.local/bin/uu b/.local/bin/uu @@ -1,94 +0,0 @@ -#!/usr/bin/env zsh - -announce() { - echo -e "\n$(tput setaf 3)# $@$(tput sgr0)" -} - -announce "Updating package manager lists and installed packages" -if [ "$(uname)" = "Linux" ]; then - if type xbps-install >/dev/null; then - sudo xbps-install -Su - sudo xbps-remove -Oo - fi - if type pacman >/dev/null; then - sudo pacman -Syu - echo "Removing unneeded packages" - unused=$(pacman -Qdtq) - if [[ $(echo "$unused" | wc -l) -gt 1 ]]; then - echo "Unused packages:" - echo "$unused" - printf '%s ' 'Delete unused packages? [y/N]' - read REPLY - if [[ $REPLY =~ ^[Yy]$ ]]; then - sudo pacman -Rns $(echo $unused | tr '\n' ' ') --noconfirm - fi - fi - - echo "Removing old packages" - sudo pacman -Sc --noconfirm - fi - if type yay >/dev/null; then - yay -Syu --color auto --noconfirm - fi - if type apt-get >/dev/null; then - sudo apt-get update && \ - sudo apt-get -y upgrade && \ - sudo apt-get -y dist-upgrade && \ - sudo apt-get -y autoremove && \ - sudo apt-get clean - fi - -elif type brew >/dev/null; then - echo "Fetching updates..." - brew analytics off - brew update && \ - brew upgrade && \ - brew cask upgrade && \ - brew cleanup -else - (>&2 echo "Platform not supported") - exit 1 -fi - -announce "Updating dotfiles" -. ~/.commands.sh -dotfiles pull -dotfiles submodule foreach --recursive git pull origin master ; m_all_sl -#announce "Finished building dotfiles" - -if type conda >/dev/null; then - announce "Upgrading conda packages" - conda update --all --yes -fi - -if type julia >/dev/null; then - announce "Upgrading julia packages" - julia --color=yes -e 'import Pkg; Pkg.update()' -fi - -if [ -d ~/code/zplug ]; then - announce "Upgrading zplug packages" - (zsh -c "source ~/.zshrc && zplug update") -fi -if [ -d ~/.zgen ]; then - announce "Upgrading zgen packages" - (zsh -c "source ~/.zshrc && zgen update && zgen save") -fi -if [ -d ~/code/fffs ]; then - announce "Upgrading fffs packages" - [ ! -h ~/.local/bin/fffs ] && ln -s ~/code/fffs/fffs ~/.local/bin/fffs - fffs zsh update -fi - -if [ -d ~/.vim/vim-plugs ] && [ "$EDITOR" = "vim" ]; then - announce "Upgrading $EDITOR packages" - case "$EDITOR" in - *vim*) - $EDITOR +PlugUpgrade +PlugUpdate +qall;; - esac -fi - -if [ "$1" = 'all' ]; then - ssh adamsgaard.dk -t '~/.local/bin/uu' - ssh debvm -t '~/.local/bin/uu' -fi