mirror of
https://github.com/kremalicious/dotfiles.git
synced 2024-11-25 03:20:09 +01:00
100 lines
1.4 KiB
Bash
Executable File
100 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
|
|
#
|
|
# macOS
|
|
# -------------
|
|
|
|
# echo ""
|
|
# echo "$(tput setaf 3) Update macOS Apps"
|
|
# echo "------------------------------$(tput sgr0)"
|
|
|
|
# sudo softwareupdate -i -a
|
|
# mas upgrade
|
|
|
|
#
|
|
# Homebrew
|
|
# -------------
|
|
|
|
echo ""
|
|
echo ""
|
|
echo "$(tput setaf 3) Update Homebrew"
|
|
echo "------------------------------$(tput sgr0)"
|
|
|
|
brew update
|
|
brew upgrade
|
|
brew cleanup
|
|
|
|
|
|
#
|
|
# Node.js & npm
|
|
# -------------
|
|
|
|
echo ""
|
|
echo ""
|
|
echo "$(tput setaf 3) Update Node.js & npm"
|
|
echo "------------------------------$(tput sgr0)"
|
|
|
|
# shellcheck source=/dev/null
|
|
[ -s "$HOME/.nvm" ] && . "$HOME/.nvm/nvm.sh"
|
|
|
|
# Update to latest nvm Node.js
|
|
nvm install node --reinstall-packages-from=node
|
|
nvm alias default node
|
|
|
|
# update npm itself
|
|
nvm install-latest-npm
|
|
# npm install npm -g
|
|
|
|
# update all global packages
|
|
npm update -g
|
|
|
|
|
|
|
|
#
|
|
# Ruby
|
|
# -------------
|
|
|
|
# echo ""
|
|
# echo ""
|
|
# echo "$(tput setaf 3) Update rvm"
|
|
# echo "------------------------------$(tput sgr0)"
|
|
|
|
# # update rvm itself
|
|
# rvm get stable
|
|
# rvm reload
|
|
|
|
# # update all gemsets
|
|
# rvm gemset update
|
|
|
|
# # cleanup
|
|
# rvm cleanup all
|
|
|
|
|
|
#
|
|
# ClamAV
|
|
# -------------
|
|
|
|
echo ""
|
|
echo ""
|
|
echo "$(tput setaf 3) Update ClamAV Database"
|
|
echo "------------------------------$(tput sgr0)"
|
|
|
|
freshclam -v
|
|
|
|
|
|
#
|
|
# GPG
|
|
# -------------
|
|
|
|
echo ""
|
|
echo ""
|
|
echo "$(tput setaf 3) Refresh GPG keys"
|
|
echo "------------------------------$(tput sgr0)"
|
|
|
|
gpg --refresh-keys
|
|
|
|
echo ""
|
|
echo "$(tput setaf 2) -------------------------------"
|
|
echo " ✓ all done$(tput sgr0)"
|