1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-26 11:37:32 +00:00

docs(config): Clarify the changing starship config (#2339)

Have clarified changing the starship config file using the
`STARSHIP_CONFIG` env var.
This commit is contained in:
Thomas O'Donnell 2021-02-21 10:02:41 +01:00 committed by GitHub
parent 71b6fc1777
commit eaf9868c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,16 +21,16 @@ success_symbol = "[➜](bold green)" # The "success_symbol" segment is being
disabled = true
```
You can change default `starship.toml` file location with `STARSHIP_CONFIG` environment variable:
You can change default configuration file location with `STARSHIP_CONFIG` environment variable:
```sh
export STARSHIP_CONFIG=~/.starship
export STARSHIP_CONFIG=~/.starship/config.toml
```
Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`:
```powershell
$ENV:STARSHIP_CONFIG = "$HOME\.starship"
$ENV:STARSHIP_CONFIG = "$HOME\.starship\config.toml"
```
### Logging