helm/scripts/install.sh

17 lines
484 B
Bash
Raw Normal View History

2014-09-19 14:19:17 -07:00
#!/bin/bash
2014-04-11 02:55:36 -07:00
2014-07-29 21:49:10 -07:00
# In case this file was run via curl
2015-08-28 13:31:08 -07:00
[ ! -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
2014-04-11 02:55:36 -07:00
2014-09-19 14:19:17 -07:00
shopt -s extglob
2015-12-08 22:42:27 -08:00
for rcfile in "$HOME"/.dotfiles/!(bin|scripts|README.md|Gemfile*); do
2014-09-19 14:19:17 -07:00
filep="$HOME/."$(basename "$rcfile")
2014-07-29 21:49:10 -07:00
2014-09-29 12:36:20 -07:00
[ "$1" == "--force" ] && rm -f "$filep"
2014-09-19 14:19:17 -07:00
[ -e "$filep" ] && continue
2014-09-29 12:36:20 -07:00
ln -vsF "$rcfile" $filep
2014-07-29 21:49:10 -07:00
done