ftp -o - https://jcs.org/move_in | sh -
at pixel 36 lines 627 B view raw
1#!/bin/sh 2# 3# download dot files from github, install them to ~ 4# joshua stein <jcs@jcs.org> 5# 6 7if [ `uname` = "Linux" -o `uname` = "Darwin" ]; then 8 FETCH="curl -L" 9else 10 FETCH="ftp -o -" 11fi 12 13TD=`mktemp -d XXXXXX` 14 15if [ ! -d ~/.ssh/ ]; then 16 mkdir ~/.ssh/ 17fi 18 19$FETCH https://github.com/jcs/dotfiles/tarball/master | tar -C $TD -xzf - 20rm -f $TD/jcs-*/move_in.sh 21 22cd $TD/jcs-* && tar -cf - . | (cd; tar -xvf -) 23cd - 24 25rm -rf $TD 26 27for f in .bash_history .sqlite_history .mysql_history; do 28 rm -f ~/$f 29 ln -s /dev/null ~/$f 30done 31 32# remove cruft installed by default in openbsd 33rm -f ~/.cshrc \ 34 ~/.login \ 35 ~/.mailrc \ 36 ~/.profile