You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
457 B
14 lines
457 B
9 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
[[ -x `command -v wget` ]] && CMD="wget --no-check-certificate -O -"
|
||
|
[[ -x `command -v curl` ]] >/dev/null 2>&1 && CMD="curl -#L"
|
||
|
|
||
|
if [ -z "$CMD" ]; then
|
||
|
echo "No curl or wget available. Aborting."
|
||
|
else
|
||
|
echo "Installing dotfiles"
|
||
|
mkdir -p "$HOME/dotfiles" && \
|
||
|
eval "$CMD https://github.com/nicksp/dotfiles/tarball/master | tar -xzv -C ~/.dotfiles --strip-components=1 --exclude='{.gitignore}'"
|
||
|
. "$HOME/dotfiles/setup.sh"
|
||
|
fi
|