-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.fish
44 lines (36 loc) · 1.12 KB
/
update.fish
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
39
40
41
42
43
44
function update -d "Update all tools and applications on MacOS"
if nc -z google.com 80 >/dev/null 2>&1
echo "🍎 Updating System (root)"
sudo softwareupdate --install -all
echo \n
echo "🍺 Updating Brew"
brew update
brew upgrade
brew upgrade --cask
brew cleanup
echo \n
# echo "💎 Updating Ruby Gems"
# sudo gem update
# echo \n
# echo "🐍 Updating Python"
# pip list --outdated | awk '{print $1}' | xargs -n1 pip install -U
# echo \n
# echo "📦 Updating NPM"
# npm --location=global update
# echo \n
echo "🐡 Updating Fish Plugins and Completions"
fundle self-update
fundle update
fish_update_completions --keep
echo \n
echo "📒 Updating TLDR"
tldr --update
echo \n
echo "📂 Cleaning stale directories from z cache"
z --clean
echo \n
echo "Succes! You are fully up to date now. 👍 "
else
echo "You are currently not connected to the internet. Try again later."
end
end