-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.sh
117 lines (95 loc) · 2.15 KB
/
bootstrap.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
brew update
# Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
# Install Bash 4
brew install bash
# Install more recent versions of some OS X tools
brew tap homebrew/dupes
brew install homebrew/dupes/grep
binaries=(
rename
python
node
git
docker
boot2docker
fish
jmeter
wget
leiningen
maven
jenv
tree
)
echo "installing binaries..."
brew install ${binaries[@]}
brew cleanup
brew tap homebrew/binary
brew tap homebrew/versions
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
# Apps
apps=(
dropbox
google-chrome
java6
java7
java
atom
skype
forklift
intellij-idea
lighttable
virtualbox
clipmenu
evernote
skitch
p4merge
asepsis
adobe-reader
hipchat
sourcetree
send-to-kindle
vlc
calibre
avast
flashlight
adium
emacs
docker-compose
slack
the-unarchiver
)
# Install apps to /Applications
# Default is: /Users/$user/Applications
echo "installing apps..."
brew cask install --appdir="/Applications" ${apps[@]}
# oh-my-fish
curl -L https://github.com/bpinto/oh-my-fish/raw/master/tools/install.fish | fish
# fish
## add fish to list of shells
sudo bash -c "echo \"/usr/local/bin/fish\" >> /etc/shells"
## change default shell
chsh -s /usr/local/bin/fish
omf install
# make symbolink link of java 6 to standard JVM path (from system)
sudo ln -s /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/ /Library/Java/JavaVirtualMachines/jdk1.6.0_65.jdk
# Mac OS X
## show hidden files in Finder
defaults write com.apple.finder AppleShowAllFiles YES
# Other configurations
mkdir /Users/jirkapenzes/dev/github
git clone https://github.com/jirkapenzes/dotfiles /Users/jirkapenzes/dev/github/dotfiles
dotfiles_path="/Users/jirkapenzes/dev/github/dotfiles/"
echo "DOT_FILES DIR: " >> $dotfiles_dir
# dev setup
sh $dotfiles_dir ".dev.sh"