-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·43 lines (31 loc) · 969 Bytes
/
install.sh
File metadata and controls
executable file
·43 lines (31 loc) · 969 Bytes
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
#!/bin/bash
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo Updating submodules...
git submodule update --init --recursive
echo Linking dotfiles...
ln -s -f -i ${BASEDIR}/Brewfile ~/.Brewfile
touch ~/.Brewfile.local
brew bundle
# vim
if [ ! -d "~/.vim/" ]; then
echo No .vim directory found, making...
mkdir -p ~/.vim
fi
ln -s -f -i ${BASEDIR}/.vimrc ~/.vimrc
ln -s -f -i ${BASEDIR}/.vim/ ~/.vim/bundle
# zsh
ln -s -f -i ${BASEDIR}/.zshrc ~/.zshrc
ln -s -f -i ${BASEDIR}/zsh_plugins.txt ~/.zsh_plugins.txt
# git
ln -s -f -i ${BASEDIR}/.gitconfig ~/.gitconfig
ln -s -f -i ${BASEDIR}/.gitignore_global ~/.gitignore_global
# tmux
ln -s -f -i ${BASEDIR}/.tmux/ ~/.tmux
ln -s -f -i ${BASEDIR}/.tmux.conf ~/.tmux.conf
# npm
ln -s -f -i ${BASEDIR}/.npmrc ~/.npmrc
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "Adding gruvbox to iTerm2, you will need to set this and Fira Code in your profile"
open ${BASEDIR}/gruvbox.itermcolors
./macos.sh
fi