Repository navigation
Expand file tree
/
Copy pathbrew.sh
More file actions
executable file
·63 lines (52 loc) · 1.55 KB
/
Copy pathbrew.sh
File metadata and controls
executable file
·63 lines (52 loc) · 1.55 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
source ./utils/confirm.sh
source ./utils/brew-utils.sh
brew_packages=(
vim
htop
yarn
tree
exa # ls replacement https://github.com/ogham/exa
watch
jq # parse json response https://stedolan.github.io/jq/
bat # cat replacement https://github.com/sharkdp/bat
prettyping # ping replacement https://github.com/denilsonsa/prettyping
fd # user-friendly find alternative https://github.com/sharkdp/fd/
ncdu # better du
tldr # better man https://github.com/tldr-pages/tldr/
noti # notification from terminal https://github.com/variadico/noti
nmap
hub # command-line tool that makes git easier to use with GitHub
tfenv # multiple terraform versions
fzf # command-line finder
github-markdown-toc # create table of content in markdown files
wget
golang
ykman # yubikey from terminal
imagemagick # convert & concatenate images
ant
hashicorp/tap/terraform-ls # terraform language server https://github.com/hashicorp/terraform-ls
)
if [ "$1" == "--remove" ] || [ "$1" == "-r" ]; then
confirm "Are you sure you want to remove all Brew packages?" || exit
for i in "${brew_packages[@]}"
do
:
brew uninstall "$i"
done
confirm "Do you want to disinstall Brew itself ?" || exit
uninstallBrew
exit
fi
# Make sure homebrew is installed first
mandatoryBrew
brew doctor
brew update
echo "Installing Brew packages"
for i in "${brew_packages[@]}"
do
:
brew install "$i"
done
# Post installation
tfenv install # this will install latest package