Files
dotfiles/home/fish/functions/update.fish
Stefan Imhoff 300b8b1574 chore: update
2024-08-02 12:19:19 +02:00

26 lines
463 B
Fish

function update --description "Updating Homebrew, Ruby, Python, Node.js, Neovim, and MacOS"
sudo -v
cd ~/.dotfiles
# Update Nix flake
nix flake update
# Add to git
git add .
# Rebuild nix-darwin
darwin-rebuild switch --flake .
# Update Homebrew
brew update
brew outdated
brew upgrade
brew cleanup
# Clean up Nix
nix-collect-garbage -d
# Update Neovim
nvim --headless "+Lazy! sync" +qa
end