Skip to content

Commit ba9c8fc

Browse files
authored
chore(copier): update from template
1 parent bdef23f commit ba9c8fc

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.config/copier/.copier-answers.shared.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# DO NOT EDIT!
33
# -*- mode: yaml -*-
44
# prettier-ignore
5-
_commit: fc1c03a
5+
_commit: 20d5cab
66
_src_path: gh:liblaf/copier-share
77
author_email: 30631553+liblaf@users.noreply.github.com
88
author_name: liblaf

.envrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
# This file is @generated by <https://github.com/liblaf/copier-shared>.
3+
# DO NOT EDIT!
4+
5+
function load-direnv() {
6+
local starting="$1"
7+
if [[ ! -d $starting ]]; then
8+
return
9+
fi
10+
readarray -t files < <(find "$starting" -name "*.sh" -type f | sort)
11+
for file in "${files[@]}"; do
12+
source_env_if_exists "$file"
13+
done
14+
}
15+
16+
export DIRENV_ROOT="$PWD"
17+
load-direnv "$PWD/.config/copier/direnv/"
18+
load-direnv "$PWD/.config/direnv/"

0 commit comments

Comments
 (0)