-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·27 lines (23 loc) · 673 Bytes
/
setup.sh
File metadata and controls
executable file
·27 lines (23 loc) · 673 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
#!/bin/sh
[ $(pwd) = "$HOME/.dotfiles" ] || ln -sfn "$(pwd)" "$HOME/.dotfiles"
for file in home/*; do
dotfile="$(basename "$file")"
case "${dotfile}" in
Makefile|*.md|LICENSE|setup.sh)
# NOOP
;;
*)
# link the file with a leading dot
echo "ln -sf $(echo "$(pwd)/${file}" | sed "s:^$HOME:~:") ~/.${dotfile}"
ln -sf "$(pwd)/${file}" "$HOME/.${dotfile}"
;;
esac
done
# mac defaults
./macdefaults.sh
# vim stuff
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall
mkdir -p ~/.vim/backup
mkdir -p ~/.vim/undo
mkdir -p ~/.vim/swap