-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
50 lines (37 loc) · 1.16 KB
/
install.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
#!/bin/bash -xe
export HOMEBREW_INSTALL_FROM_API=true
echo "Remember to install WWDC colourscheme - See vim/README.md"
################
## Fish stuff ##
################
cd fish && brew bundle && cd -
mkdir -p ~/.config
ln -sf "$(pwd)/fish" ~/.config/fish
# Check if already there before running.
echo "Your password will be required to add fish to available shells..."
echo "$(brew --prefix)/bin/fish" | sudo tee -a /etc/shells
# TODO: Check is not already the shell before running.
echo "Your password will be required to change shell..."
chsh -s "$(brew --prefix)/bin/fish"
# Create directory for marks.
mkdir -p ~/.marks
################
## Tmux stuff ##
################
cd tmux && brew bundle && cd -
ln -sf "$(pwd)/tmux/tmux.conf" ~/.tmux.conf
###############
## Vim stuff ##
###############
cd vim && brew bundle && cd -
ln -sf "$(pwd)/vim/vimrc" ~/.vimrc
ln -sf "$(pwd)/vim/gvimrc" ~/.gvimrc
ln -sf "$(pwd)/vim" ~/.vim
ln -sf "$(pwd)/vim" ~/.config/nvim
###############
## Git stuff ##
###############
cd git && bash install.sh && cd -
# TODO: PlugInstall command in vim and neovim
# TODO: Defaults writes for terminal settings
# TODO: Install theme via script.