Skip to content

Instantly share code, notes, and snippets.

@efrecon
Last active June 16, 2025 18:38
Show Gist options
  • Select an option

  • Save efrecon/a9addf9f5812212366ede103bfc211f6 to your computer and use it in GitHub Desktop.

Select an option

Save efrecon/a9addf9f5812212366ede103bfc211f6 to your computer and use it in GitHub Desktop.

Revisions

  1. efrecon revised this gist Jun 16, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions devenv-hook.sh
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,7 @@ set -eu

    # Load common library installed by https://github.com/efrecon/devenv-code-tunnel
    . /usr/local/lib/common.sh
    . /usr/local/lib/log.sh

    HOOK_VERBOSE=2
    HOOK_LOG=2
  2. efrecon revised this gist Apr 11, 2025. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion devenv-hook.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,9 @@
    #!/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

    @@ -17,6 +21,6 @@ else
    (
    cd "${HOME}/dev/projects"
    git clone --recurse https://github.com/efrecon/dotfiles.git
    ./dotfiles/install.sh --verbose debug bash dew git
    ./dotfiles/install.sh --verbose debug bash dew git vscode
    )
    fi
  3. efrecon revised this gist Apr 10, 2025. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion devenv-hook.sh
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,9 @@ HOOK_VERBOSE=2
    HOOK_LOG=2
    log_init HOOK

    if ! [ -d "${HOME}/dev/projects/dotfiles" ]; then
    if [ -d "${HOME}/dev/projects/dotfiles" ]; then
    verbose "Already initialized"
    else
    mkdir -p "${HOME}/dev/projects"
    (
    cd "${HOME}/dev/projects"
  4. efrecon revised this gist Apr 10, 2025. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions devenv-hook.sh
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,10 @@ 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
    mkdir -p "${HOME}/dev/projects"
    (
  5. efrecon revised this gist Apr 10, 2025. 1 changed file with 8 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions devenv-hook.sh
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,11 @@ set -eu
    # Load common library installed by https://github.com/efrecon/devenv-code-tunnel
    . /usr/local/lib/common.sh

    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
    )
    if ! [ -d "${HOME}/dev/projects/dotfiles" ]; then
    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
    )
    fi
  6. efrecon created this gist Apr 9, 2025.
    14 changes: 14 additions & 0 deletions devenv-hook.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #!/bin/sh

    # 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

    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
    )