-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakeLinks.sh
executable file
·39 lines (33 loc) · 1.07 KB
/
makeLinks.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
#!/bin/bash
############################
# .make.sh
# This script creates symlinks from the home directory to any desired dotfiles in ~/dotfiles
############################
echo copying
for f in ~/dotfiles/*
do
echo "symlinking: "$f
if [[ "$f" == "init.vim" ]]; then
ln -sf "$f" "$HOME/.config/nvim/${f##*/}"
elif [[ "$f" == "config" ]]; then
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
ln -sf "$f" "$HOME/.config/i3/${f##*/}"
fi
elif [[ "$f" == "Brewfile" ]] ; then
if [[ "$OSTYPE" == "darwin"* ]]; then
ln -sf "$f" "$HOME/.brewfile/${f##*/}"
fi
else
ln -sf "$f" "$HOME/.${f##*/}"
fi
done
rm -f ~/.makeLinks.sh
rm -f ~/.README.md
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo 'set up tmux plugins'
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
echo 'getting zpreso'
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
chsh -s "$(which zsh)"
mkdir "$HOME/.undodir/"