-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmove_in.sh
More file actions
44 lines (35 loc) · 779 Bytes
/
move_in.sh
File metadata and controls
44 lines (35 loc) · 779 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
set -e
# remove cruft installed by default in openbsd
rm -f ~/.cshrc \
~/.login \
~/.mailrc \
~/.profile \
~/.Xdefaults \
~/.cvsrc
for f in .bash_history .sqlite_history .mysql_history; do
rm -f ~/$f
ln -s /dev/null ~/$f
done
chmod 700 ~
if [ -d ~/.dotfiles ]; then
cd ~/.dotfiles
git pull --ff-only
else
git clone https://github.com/jcs/dotfiles ~/.dotfiles
fi
cd ~/.dotfiles
for f in .???*; do
rm -f ~/$f
(cd ~/; ln -s .dotfiles/$f $f)
done
if [ ! -d ~/.ssh ]; then
mkdir ~/.ssh
fi
if [ ! -d ~/.vim/bundle/Vundle.vim ]; then
git clone https://github.com/VundleVim/Vundle.vim.git \
~/.vim/bundle/Vundle.vim
fi
# we're probably being piped to a shell (ftp -o - .. | sh -) so this
# won't work running it ourselves
echo "vim +PlugInstall +qall"