-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-tools.exclude.sh
executable file
·78 lines (56 loc) · 2.14 KB
/
install-tools.exclude.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
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
#!/usr/bin/env bash
function installTools() {
# Install homebrew if it is not installed
which brew 1>&/dev/null
if [ ! "$?" -eq 0 ] ; then
echo "Homebrew not installed. Attempting to install Homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
if [ ! "$?" -eq 0 ] ; then
echo "Something went wrong. Exiting..." && exit 1
fi
fi
brew update
brew upgrade
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
brew install docker
brew install tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Install TPM plugins so we don't have to manually do it with "prefix + I" after
~/.tmux/plugins/tpm/scripts/install_plugins.sh
brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/lukechilds/zsh-better-npm-completion.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-better-npm-completion
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
brew install gh
brew cask install visual-studio-code
brew tap cloudfoundry/tap
brew install cf-cli
brew install kubectl
# https://github.com/rxhanson/Rectangle
brew install --cask rectangle
# TODO: configure prefs for rectangle after install
brew install awscli
brew install fzf
brew cleanup
# Install powerline fonts for ZSH themes etc.
mkdir -p ~/.tmp
git clone https://github.com/powerline/fonts.git --depth=1 ~/.tmp/fonts
cd ~/.tmp/fonts
./install.sh
cd ..
rm -rf ~/.tmp/fonts
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
installTools;
else
echo "${MESSAGE_PREFIX} Install brew and other tools? ";
read -p "(y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "${MESSAGE_PREFIX} Installing... ";
installTools;
else
echo "${MESSAGE_PREFIX_WARNING} Skipping tool installation"
fi;
fi;
unset installTools;