-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement global config options (#960)
Co-authored-by: Ruben Arts <[email protected]>
- Loading branch information
1 parent
713d94b
commit cf548aa
Showing
28 changed files
with
589 additions
and
191 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Global configuration in pixi | ||
|
||
Pixi supports some global configuration options, as well as project-scoped configuration (that does not belong into the project file). | ||
The configuration is loaded in the following order: | ||
|
||
1. Global configuration folder (e.g. `~/.config/pixi/config.toml` on Linux, dependent on XDG_CONFIG_HOME) | ||
2. Global .pixi folder: `~/.pixi/config.toml` (or `$PIXI_HOME/config.toml` if the `PIXI_HOME` environment variable is set) | ||
3. Project-local .pixi folder: `$PIXI_PROJECT/.pixi/config.toml` | ||
4. Command line arguments (`--tls-no-verify`, `--change-ps1=false` etc.) | ||
|
||
!!! note | ||
To find the locations where `pixi` looks for configuration files, run `pixi` with `-v` or `--verbose`. | ||
|
||
## Reference | ||
|
||
The following reference describes all available configuration options. | ||
|
||
```toml | ||
# The default channels to select when running `pixi init` or `pixi global install`. | ||
# This defaults to only conda-forge. | ||
default_channels = ["conda-forge"] | ||
|
||
# When set to false, the `(pixi)` prefix in the shell prompt is removed. | ||
# This applies to the `pixi shell` subcommand. | ||
# You can override this from the CLI with `--change-ps1`. | ||
change_ps1 = true | ||
|
||
# When set to true, the TLS certificates are not verified. Note that this is a | ||
# security risk and should only be used for testing purposes or internal networks. | ||
# You can override this from the CLI with `--tls-no-verify`. | ||
tls_no_verify = false | ||
``` |
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.