Repository navigation
Expand file tree
/
Copy pathbrew.sh
More file actions
executable file
·93 lines (69 loc) · 2.51 KB
/
Copy pathbrew.sh
File metadata and controls
executable file
·93 lines (69 loc) · 2.51 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
# Install command-line tools using Homebrew
# Make sure we're using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade
# GNU core utilities (those that come with macOS are outdated)
brew install coreutils
brew install moreutils
# GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed
brew install findutils
brew install peco
brew install thefuck
# generic colouriser http://kassiopeia.juls.savba.sk/~garabik/software/grc/
brew install grc
# run this script when this file changes guy.
brew install entr
# github util. imho better than hub
brew install gh
# mtr - ping & traceroute. best.
brew install mtr
# allow mtr to run without sudo
mtrlocation=$(brew info mtr | grep Cellar | sed -e 's/ (.*//')
if [ -n "$mtrlocation" ]; then
sudo chmod 4755 "$mtrlocation/sbin/mtr"
sudo chown root "$mtrlocation/sbin/mtr"
else
echo "Warning: could not find mtr Cellar path, skipping sudo setup"
fi
# Install other useful binaries
brew install fzf
brew install git
brew install kubernetes-cli
brew install nvm
brew install pv
brew install pyenv
brew install rbenv
brew install rename
brew install terminal-notifier
brew install tree
brew install watchman
brew install yarn
brew install z
brew install pygments
brew install zsh zsh-completions
# oh-my-zsh
if [ ! -d "$HOME/.oh-my-zsh" ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
fi
# zsh plugins
ZSH_CUSTOM="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}"
[ -d "$ZSH_CUSTOM/plugins/zsh-autosuggestions" ] || \
git clone https://github.com/zsh-users/zsh-autosuggestions "$ZSH_CUSTOM/plugins/zsh-autosuggestions"
[ -d "$ZSH_CUSTOM/plugins/zsh-peco-history" ] || \
git clone https://github.com/jimeh/zsh-peco-history.git "$ZSH_CUSTOM/plugins/zsh-peco-history"
[ -d "$ZSH_CUSTOM/plugins/zsh-nvm" ] || \
git clone https://github.com/lukechilds/zsh-nvm "$ZSH_CUSTOM/plugins/zsh-nvm"
[ -d "$ZSH_CUSTOM/plugins/zsh-syntax-highlighting" ] || \
git clone https://github.com/zsh-users/zsh-syntax-highlighting "$ZSH_CUSTOM/plugins/zsh-syntax-highlighting"
[ -d "$ZSH_CUSTOM/plugins/fzf-tab" ] || \
git clone https://github.com/Aloxaf/fzf-tab "$ZSH_CUSTOM/plugins/fzf-tab"
[ -d "$ZSH_CUSTOM/themes/powerlevel10k" ] || \
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "$ZSH_CUSTOM/themes/powerlevel10k"
# npm packages
brew install diff-so-fancy
brew tap dart-lang/dart
brew install dart
# Remove outdated versions from the cellar
brew cleanup