-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·47 lines (38 loc) · 1.13 KB
/
Copy pathinstall
File metadata and controls
executable file
·47 lines (38 loc) · 1.13 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
#!/bin/bash
regex="[^/]*$"
for file in ~/dotfiles/.* # Only match hidden files
do
if [[ -f $file ]]
then
if [[ $file =~ $regex ]]
then
filename="${BASH_REMATCH[0]}"
rm ~/$filename
ln -s $file ~/$filename
fi
fi
done
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# install rbenv
brew install rbenv
rbenv init
# install zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# fix overwritten .zshrc
if [[ -f ~/.zshrc.pre-oh-my-zsh ]]
rm ~/.zshrc
rm ~/.zshrc.pre-oh-my-zsh
ln -s ~/dotfiles/.zshrc ~/.zshrc
fi
# install aws-cli
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
rm AWSCLIV2.pkg
# install asdf, java asdf plugin, and java 8, and set system java to global default java
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
asdf plugin-add java https://github.com/halcyon/asdf-java.git
asdf install java adoptopenjdk-8.0.312+7
asdf global java adoptopenjdk-8.0.312+7
# install heroku cli
brew tap heroku/brew && brew install heroku