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.
13 lines
457 B
13 lines
457 B
#!/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
|
|
|