dotfiles/bin/update

20 lines
285 B
Plaintext

#!/bin/sh
if command -v brew &> /dev/null; then
brew update
brew upgrade
brew upgrade --cask
fi
if command -v nix &> /dev/null; then
nix-channel --update
nix-env -u
home-manager switch
fi
if command -v doom &> /dev/null; then
doom sync
doom upgrade -y
doom env
fi