[dotfiles-local] Add script to easily get my dotfiles-local

This commit is contained in:
Eric Teunis de Boone 2021-11-25 15:46:25 +01:00
parent b553944b96
commit 0e6e7d2451
1 changed files with 22 additions and 0 deletions

22
install-local-dotfiles.sh Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
case "$1" in
-h|--help|--usage)
echo "$0: [local-dotfile-directory]"
echo
echo "Retrieves a local dotfile repository and puts it at \$local-dotfile-directory."
exit 0
;;
esac
LOCAL_DIR="${1:-$HOME/.dotfiles-local}"
LOCAL_GIT="git@git.deboone.nl:ericteunis/dotfiles-local.git"
git clone $LOCAL_GIT $LOCAL_DIR
# Optionally run the install script directly
if false; then
$LOCAL_DIR/install.sh
fi