-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
52 lines (37 loc) · 1.28 KB
/
setup.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
#!/bin/sh
echo 'Setting up your Mac...'
# Install Brew.
if test ! $(which brew); then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
export PATH=/opt/homebrew/bin:$PATH
# Update Brew recipes.
brew update
brew install git
# clone this repo to the required dir
git clone [email protected]:TMantas/dotfiles.git ~/dotfiles
cd ~/dotfiles
# Install Brewfile bundle.
brew tap homebrew/bundle
brew bundle
# Oh-My-Zsh.
sudo rm -rf ~/.oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
ln -sf ~/dotfiles/zsh/zshrc ~/.zshrc
# Set default shell.
echo "$(which zsh)" >> /etc/shells
chsh -s $(which zsh)
# Configure Vim.
ln -sf ~/dotfiles/vim/init.vim ~/.config/nvim/init.vim
ln -sF ~/dotfiles/vim/ftplugin ~/.config/nvim/ftplugin
ln -sF ~/dotfiles/vim/config ~/.config/nvim/config
ln -sF ~/dotfiles/vim/pluggedconf ~/.config/nvim/pluggedconf
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Configure hammerspoon.
ln -sf ~/dotfiles/hammerspoon/init.lua ~/.hammerspoon/init.lua
# install global npm packages
npm i -g knex
# MacOS setup
defaults write com.apple.dock tilesize -integer 55; killall Dock
echo ''
echo 'Done!'