helm/install.sh
2015-12-13 06:46:53 -05:00

17 lines
495 B
Bash
Executable file

#!/bin/bash
# In case this file was run via curl
[ ! -d ~/.dotfiles ] && git clone --recursive https://github.com/hlissner/dotfiles ~/.dotfiles
[ ! -d ~/.vim ] && git clone --recursive https://github.com/hlissner/vim ~/.vim
~/.vim/install.sh
shopt -s extglob
for rcfile in "$HOME"/.dotfiles/!(bin|scripts|README.md|install.sh|Gemfile*); do
filep="$HOME/."$(basename "$rcfile")
[ "$1" == "--force" ] && rm -f "$filep"
[ -e "$filep" ] && continue
ln -vsF "$rcfile" $filep
done