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