-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·34 lines (27 loc) · 873 Bytes
/
update.sh
File metadata and controls
executable file
·34 lines (27 loc) · 873 Bytes
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
33
34
#!/usr/bin/env bash
set -euo pipefail
echo "--------------------------------------------------------------"
echo "🔄 Updating macOS Development Environment"
echo "--------------------------------------------------------------"
echo " "
export PATH=/usr/local/bin:$PATH
echo "📦 Updating Homebrew and installed packages..."
brew update
brew upgrade
brew cleanup
if command -v omz &> /dev/null; then
echo "📺 Updating Oh My Zsh..."
omz update
fi
if [ -d "$HOME/.pyenv" ]; then
echo "🐍 Updating pyenv..."
cd ~/.pyenv && git pull && cd -
fi
if command -v conda &> /dev/null; then
echo "🐍 Updating Anaconda..."
conda update -n base -c defaults conda -y
fi
echo
echo "-----------------------------------------------------------------------"
echo "✅ Update complete!"
echo "-----------------------------------------------------------------------"