-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] additional (and optional) system-wide configuration path PREFIX/etc/direnv #1038
Open
brandung-sjorek
wants to merge
1
commit into
direnv:master
Choose a base branch
from
brandung-sjorek:feature/system-wide-configuration-path
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ mkShell { | |
go | ||
go-md2man | ||
gox | ||
gnused | ||
|
||
# Shells | ||
bashInteractive | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should still respect XDG spec and refer to XDG spec IMHO.