-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackup.sh
executable file
·38 lines (31 loc) · 895 Bytes
/
packup.sh
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
35
36
37
38
#!/bin/bash
# https://github.com/dubniczky/Shell-Utilities
# Update various packages and applications from multiple sources
# Homebrew
if [ -x "$(command -v brew)" ]; then
echo "Updating Homebrew..."
brew upgrade --auto-update
brew cleanup
fi
# Homebrew Intel Edition
if [ -x "$(command -v ibrew)" ]; then
echo "Updating iHomebrew..."
ibrew upgrade --auto-update
ibrew cleanup
fi
# Pnpm global packages
if [ -x "$(command -v pnpm)" ]; then
echo "Updating Pnpm..."
pnpm update --latest --global
fi
# Pnpm global packages
if [ -x "$(command -v pip)" ]; then
echo "Updating Python packages..."
pip install --upgrade pip
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $PM_PYTHON install -U
fi
# Tldr help database
if [ -x "$(command -v tldr)" ]; then
echo "Updating TLDR help database..."
tldr --update
fi