-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspark.sh
executable file
·37 lines (28 loc) · 1.01 KB
/
spark.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
#!/usr/bin/env zsh
# Specify iTerm2 preferences directory
defaults write com.googlecode.iterm2.plist PrefsCustomFolder -string "~/spark/iterm2"
# Tell iTerm2 to use the custom preferences in the directory
defaults write com.googlecode.iterm2.plist LoadPrefsFromCustomFolder -bool true
# Install Oh-my-ZSH
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install tmux
brew install tmux
# Link shell config files
ln -sf ~/.spark/zshrc ~/.zshrc
# Link git config
ln -sf ~/.spark/gitconfig_global ~/.gitconfig
ln -sf ~/.spark/gitignore_global ~/.gitignore
ln -sf ~/.spark/prettierignore_global ~/.prettierignore
# Link tmux config
ln -sf ~/.spark/tmux/ ~/.tmux
ln -sf ~/.spark/tmux.conf ~/.tmux.conf
# Install NeoVim
brew list --versions neovim || (\
brew install neovim && \
mkdir -p ~/.config && \
ln -sf ~/.spark/nvim ~/.config/nvim)
# Install FNM (to handle multiple Node.js installations)
brew install nvm
mkdir -p ~/.nvm
# Create folder for projects
mkdir -p ~/Code