-
Notifications
You must be signed in to change notification settings - Fork 0
/
upgrade-all
executable file
·32 lines (30 loc) · 1.03 KB
/
upgrade-all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
echo "\n ## Homebrew is brewing... ## \n"
brew upgrade
brew upgrade --cask --greedy
# echo "\n ## Anaconda is slithering... ## \n\n _/\__/\__0> \n\n"
# conda update --prefix /Users/vladimir/anaconda3 anaconda
# conda update --all
# TODO #9 utilize the NPM expansions repo
echo "\n\n ## NPM stands for NEVER PANIC MUCH... ## \n\n"
local -r current_node_version=$(nvm current)
local -r next_node_version=$(nvm version-remote --lts)
echo "curr node = $current_node_version; next node = $next_node_version"
if [ "$current_node_version" != "$next_node_version" ]; then
local -r previous_node_version=$current_node_version
nvm install --lts --latest-npm
nvm reinstall-packages "$previous_node_version"
nvm uninstall "$previous_node_version"
nvm cache clear
fi
pnpm install pnpm@latest -g
nvm alias default node
pnpm update -g
npm i -g npm@latest
# echo 'update Zsh Theme: SpaceShip...'
# cd /Users/vladimir/.oh-my-zsh/custom/themes/spaceship-prompt
# git pull --rebase
# cd ~
bun upgrade --stable
sudo softwareupdate -iaR
omz update
omz reload