-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·49 lines (37 loc) · 1.33 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
#!/bin/sh
echo "👉 Sourcing dotfiles/.envrc"
source .envrc
echo "👉 Checking for brew command"
if ! type brew >/dev/null 2>&1; then
echo "✋ Brew not found, installing..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
echo "👉 Updating brew"
brew update
echo "👉 Checking for stow"
if ! type stow >/dev/null 2>&1; then
echo "✋ Stow not found, installing..."
brew install stow
fi
echo "👉 Stowing files under dev/"
stow dev
echo "👉 symlinking .zshrc to .zshenv for vim"
ln -s ~/.zshrc ~/.zshenv
echo "👉 Signing in to MAS"
brew install mas
mas signin --dialog $EMAIL
echo "👉 Installing all Homebrew recipes (relies on Brewfile being stowed)"
brew tap Homebrew/bundle
brew bundle --global
echo "👉 Setting Homebrew's zsh"
sudo dscl . -create /Users/$USER UserShell /usr/local/bin/zsh
echo "👉 Installing FZF auto-completion and key bindings"
$(brew --prefix)/opt/fzf/install
echo "👉 Symlinking vim to nvim"
ln -s /opt/homebrew/bin/nvim /opt/homebrew/bin/vim
echo "👉 installing terminal color schemes"
open shared/wwdc16-*.itermcolors
echo "🙌 All done!"
echo "- Be sure to create an ssh keypair if this is a new machine"
echo "- Be sure to install GPG key data (gpg --import /Path/To/File.asc)"
echo "- Please restart the computer for everything to work right"