docs: Fixed starship config location (#3432)
* Fixed starship config location config file during creation and when used as export variable into shells are different. Fixed to make it uniform and avoid errors * Update README.md * Update docs/config/README.md Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com> * Update docs/config/README.md Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com> * Update docs/config/README.md Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com> Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
This commit is contained in:
parent
0fd6f05da4
commit
360c7942f6
|
@ -24,19 +24,19 @@ disabled = true
|
|||
You can change default configuration file location with `STARSHIP_CONFIG` environment variable:
|
||||
|
||||
```sh
|
||||
export STARSHIP_CONFIG=~/.starship/config.toml
|
||||
export STARSHIP_CONFIG=~/example/non/default/path/starship.toml
|
||||
```
|
||||
|
||||
Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`:
|
||||
|
||||
```powershell
|
||||
$ENV:STARSHIP_CONFIG = "$HOME\.starship\config.toml"
|
||||
$ENV:STARSHIP_CONFIG = "$HOME\example\non\default\path\starship.toml"
|
||||
```
|
||||
|
||||
Or for Cmd (Windows) would be adding this line to your `starship.lua`:
|
||||
|
||||
```lua
|
||||
os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\.starship\\config.toml')
|
||||
os.setenv('STARSHIP_CONFIG', 'C:\\Users\\user\\example\\non\\default\\path\\starship.toml')
|
||||
```
|
||||
|
||||
### Logging
|
||||
|
|
Loading…
Reference in New Issue