-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall
executable file
·60 lines (43 loc) · 1.61 KB
/
install
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
#! /bin/sh
dotfiles_dir="$HOME/.dotfiles"
zshrc_local="$HOME/.zshrc.local"
raw_url="https://raw.githubusercontent.com/mrrooijen/dotfiles/master"
mkdir -p $HOME/.ssh
curl $raw_url/ssh/config > $HOME/.ssh/config
curl $raw_url/git/gitconfig > $HOME/.gitconfig
if [ ! -d $dotfiles_dir ]; then
echo "Installing dotfiles"
git clone [email protected]:mrrooijen/dotfiles.git $dotfiles_dir
fi
echo "Creating $HOME/Developer directory"
mkdir -p $HOME/Developer
echo "Linking zsh configuration"
ln -vnfs "$dotfiles_dir/zsh/zshrc" "$HOME/.zshrc"
ln -vnfs "$dotfiles_dir/zsh/zshenv" "$HOME/.zshenv"
echo "Linking emacs configuration"
mkdir -p $HOME/.emacs.d/straight/versions
ln -vnfs "$dotfiles_dir/emacs/init.el" "$HOME/.emacs.d/init.el"
ln -vnfs "$dotfiles_dir/emacs/straight.lock.el" "$HOME/.emacs.d/straight/versions/default.el"
echo "Linking ssh configuration"
ln -vnfs "$dotfiles_dir/ssh/config" "$HOME/.ssh/config"
echo "Linking git configuration"
ln -vnfs "$dotfiles_dir/git/gitconfig" "$HOME/.gitconfig"
echo "Linking (ruby) gem configuration"
ln -vnfs "$dotfiles_dir/ruby/gemrc" "$HOME/.gemrc"
echo "Initializing $zshrc_local"
touch $zshrc_local
echo "Installing xcode command-line tools"
xcode-select --install
echo "Installing homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "Installing system ruby"
brew install ruby
echo "Installing coreutils, git"
brew install coreutils git
echo "Installing iTerm2"
brew install --cask iterm2
echo "Installing rectangle"
brew install --cask rectangle
echo "Installing Emacs"
brew tap jimeh/emacs-builds
brew install --cask emacs-app