ftp -o - https://jcs.org/move_in | sh -
at master 44 lines 779 B view raw
1#!/bin/sh 2 3set -e 4 5# remove cruft installed by default in openbsd 6rm -f ~/.cshrc \ 7 ~/.login \ 8 ~/.mailrc \ 9 ~/.profile \ 10 ~/.Xdefaults \ 11 ~/.cvsrc 12 13for f in .bash_history .sqlite_history .mysql_history; do 14 rm -f ~/$f 15 ln -s /dev/null ~/$f 16done 17 18chmod 700 ~ 19 20if [ -d ~/.dotfiles ]; then 21 cd ~/.dotfiles 22 git pull --ff-only 23else 24 git clone https://github.com/jcs/dotfiles ~/.dotfiles 25fi 26 27cd ~/.dotfiles 28for f in .???*; do 29 rm -f ~/$f 30 (cd ~/; ln -s .dotfiles/$f $f) 31done 32 33if [ ! -d ~/.ssh ]; then 34 mkdir ~/.ssh 35fi 36 37if [ ! -d ~/.vim/bundle/Vundle.vim ]; then 38 git clone https://github.com/VundleVim/Vundle.vim.git \ 39 ~/.vim/bundle/Vundle.vim 40fi 41 42# we're probably being piped to a shell (ftp -o - .. | sh -) so this 43# won't work running it ourselves 44echo "vim +PlugInstall +qall"