-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmac_bootstrap.sh
46 lines (37 loc) · 1004 Bytes
/
mac_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
#!/usr/bin/env bash
# https://github.com/crispgm/dotfiles/blob/master/bootstrap
set -e
echo "Install Homebrew"
if test ! $(which brew); then
echo "Installing homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
echo "Setup hostname"
sudo scutil --set HostName mac
echo "Install with Brew Bundle"
set +e
brew cleanup
brew uninstall openssl
brew bundle
set -e
echo "Setup workspace"
mkdir -p ~/Git/
echo "Setup Git"
ln -s ./git/work.gitconfig ~/Git/.gitconfig
if [ -f $HOME/.gitconfig ]; then
cat $HOME/.gitconfig
mv $HOME/.gitconfig $HOME/.gitconfig.bak
fi
ln -s $PWD/git/global.gitconfig $HOME/.gitconfig
# echo "Setup Bash"
# sudo cp ./motd /etc/motd
# cp ./bash/.bashrc ~/.bashrc
# cp ./bash/.bash_profile ~/.bash_profile
echo "Setup Zsh"
sudo sh -c 'echo /usr/local/bin/zsh >> /etc/shells'
sudo chsh -s $(which zsh)
echo "Setup applications"
echo "- fzf"
$(brew --prefix)/opt/fzf/install
# echo "- neovim"
# ./neovim/neovim