-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·44 lines (38 loc) · 1.2 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
#!/bin/bash
# Bootstrap file for my own dotfiles.
# This files is idempotent and unimodal: no matter how many
# times you execute it it will produce the same output.
echo 'Fetch packages needed for development'
sudo apt-get install gvim-gnome
sudo apt-get install tmux
sudo apt-get install ack-grep
echo 'Fetch the latest master from dotfiles2'
git pull origin master
echo 'Simlink the config files to repo versions'
cd dots
for name in .*; do
if [ "$name" != '.' ] && [ "$name" != '..' ]; then
target="$HOME/$name"
if [ -e "$target" ]; then
if [ ! -L "$target" ]; then
echo "WARNING: $target exists but is not a symlink. Backing it up!"
mv $target "$target.backup"
ln -s "$PWD/$name" "$target"
fi
else
echo "Simlinking $target"
rm $target
ln -s "$PWD/$name" "$target"
fi
fi
done
cd ..
echo 'Add wombat color scheme ~/.vim/colors/wombat.vim'
mkdir -p ~/.vim/colors
cp ./vim/colors/wombat.vim ~/.vim/colors/wombat.vim
cp ./vim/colors/wombat256mod.vim ~/.vim/colors/wombat256mod.vim
echo 'Install Vundle for VIM'
if [ ! -d ~/.vim/bundle/vundle ]; then
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
fi
vim +BundleInstall +qall