-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement additional (and optional) system-wide configuration path PR…
…EFIX/etc/direnv Signed-off-by: Stephan Jorek <stephan.jorek@brandung.de>
- Loading branch information
1 parent
b6ebd2d
commit 9799e7f
Showing
17 changed files
with
208 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ let | |
buildGoModule | ||
lib | ||
stdenv | ||
gnused | ||
; | ||
in | ||
buildGoModule rec { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# --------------------------------------------------------------------------- | ||
# Hint: To activate this direnv extension, remove the '-example' suffix | ||
# --------------------------------------------------------------------------- | ||
|
||
use_foobar() { | ||
log_status "direnv: example-extension setting FOO=bar" | ||
export FOO=bar | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[global] | ||
|
||
# --------------------------------------------------------------------------- | ||
# This is the system-wide direnv configuration file. | ||
# Remove the '-default' suffix to activate! | ||
# --------------------------------------------------------------------------- | ||
|
||
# --------------------------------------------------------------------------- | ||
# This allows one to hard-code the position of bash. It maybe be useful | ||
# to set this to avoid having direnv to fail when PATH is being mutated | ||
# --------------------------------------------------------------------------- | ||
|
||
# bash_path = "" | ||
|
||
# --------------------------------------------------------------------------- | ||
# If set to `true`, stdin is disabled (redirected to /dev/null) | ||
# during the `.envrc` evaluation | ||
# --------------------------------------------------------------------------- | ||
|
||
# disable_stdin = false | ||
|
||
# --------------------------------------------------------------------------- | ||
# Also look for and load `.env` files on top of the `.envrc` files. If both | ||
# `.envrc` and `.env` files exist, the `.envrc` will always be chosen first. | ||
# --------------------------------------------------------------------------- | ||
|
||
# load_dotenv = false | ||
|
||
# --------------------------------------------------------------------------- | ||
# If set to true, the `.envrc` will be loaded with `set -euo pipefail`. This | ||
# option will be the default in the future. | ||
# --------------------------------------------------------------------------- | ||
|
||
# strict_env = false | ||
|
||
# --------------------------------------------------------------------------- | ||
# Specify how long to wait before warning the user that the command is taking | ||
# too long to execute. Defaults to "5s". | ||
# | ||
# A duration string is a possibly signed sequence of decimal numbers, each | ||
# with optional fraction and a unit suffix, such as "300ms", "-1.5h" or | ||
# "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". | ||
# --------------------------------------------------------------------------- | ||
|
||
# warn_timeout = "5s" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
# --------------------------------------------------------------------------- | ||
# This is the system-wide direnv runtime configuration file | ||
# Remove the '-default' suffix to activate! | ||
# --------------------------------------------------------------------------- |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.