Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 518 Bytes
#!/usr/bin/env bash
# A script to install some bare-bones dotfiles for use on remote servers.
#
# Usage:
# bash < <( curl http://github.com/pturley/dotfiles/raw/master/remote-install.sh )
DOTFILE_PATH="${DOTFILE_PATH:-$HOME/.dotfiles}"
if [[ -d "$HOME/.dotfiles" ]]; then
pushd $DOTFILE_PATH
git pull origin master
else
git clone http://github.com/pturley/dotfiles.git $DOTFILE_PATH
pushd $DOTFILE_PATH
fi
for dotfile in screenrc bashrc
do
ln -s $DOTFILE_PATH/$dotfile ~/.$dotfile
done
popd
Something went wrong with that request. Please try again.