Post

MacOS commands

Update it 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
function mac-updates {
  # Homebrew - https://brew.sh
  echo "Updating Homebrew ..."
  brew update
  brew upgrade
  brew cleanup

  # Vim configs - https://github.com/amix/vimrc
  echo "Updating Vim configs ..."
  cd .vim_runtime && python3 update_plugins.py && cd ..

  # tl;dr pages - https://tldr.sh
  echo "Updating tl;dr pages ..."
  tldr --update

  # GH CLI extensions - https://cli.github.com
  echo "Updating GitHub CLI extensions ..."
  gh extension upgrade --all

  # Helm - https://helm.sh
  echo "Updating Helm repos ..."
  helm repo update

  # Oh my zsh - https://ohmyz.sh
  echo "Updating Oh My Zsh ..."
  omz update

  # Nmap scripts - https://nmap.org
  echo "Updating Nmap scripts ..."
  nmap --script-updatedb
}
This post is licensed under CC BY 4.0 by the author.