forked from nudded/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·42 lines (31 loc) · 838 Bytes
/
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
#!/usr/bin/env zsh
REPO=http://github.com/Silox/dotfiles
DEST="$HOME/.dotfiles"
if [[ -d $DEST ]];then
cd $DEST && git pull origin master && cd -
else
echo "cloning repo: $REPO into dir: $DEST"
git clone $REPO $DEST
fi
function setup() {
SRC="$1"
DST="$2"
echo "Installing $SRC..."
mkdir -p $(dirname "$DST")
ln -sfn "$DEST/$SRC" "$DST"
}
echo "Installing fzf"
brew install fzf
$(brew --prefix)/opt/fzf/install --all
echo "Creating tmp dirs and symlinks in .vim"
mkdir -p $HOME/.config/nvim/tmp/{backup,swap}
setup init.vim "$HOME/.config/nvim/init.vim"
setup zshrc "$HOME/.zshrc"
setup tmux.conf "$HOME/.tmux.conf"
setup gitconfig "$HOME/.gitconfig"
echo "Cloning tmux-powerline into ~/.tmux"
pip3 install powerline-status
pip3 install --upgrade neovim
echo "updating Bundles"
vim +PlugInstall
reset