Last active
April 11, 2025 16:06
-
-
Save efrecon/a9addf9f5812212366ede103bfc211f6 to your computer and use it in GitHub Desktop.
Automated environment setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script is meant to be called as a hook from dev. environments created by | |
# the efrecon/devenv-code-tunnel project. It will download and install my | |
# dotfiles, as of https://github.com/efrecon/dotfiles, once and only once. | |
# Shell sanity. Stop on errors and undefined variables. | |
set -eu | |
# Load common library installed by https://github.com/efrecon/devenv-code-tunnel | |
. /usr/local/lib/common.sh | |
HOOK_VERBOSE=2 | |
HOOK_LOG=2 | |
log_init HOOK | |
if [ -d "${HOME}/dev/projects/dotfiles" ]; then | |
verbose "Already initialized" | |
else | |
mkdir -p "${HOME}/dev/projects" | |
( | |
cd "${HOME}/dev/projects" | |
git clone --recurse https://github.com/efrecon/dotfiles.git | |
./dotfiles/install.sh --verbose debug bash dew git vscode | |
) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment