mirror of
https://github.com/Llewellynvdm/starship.git
synced 2025-01-12 18:01:23 +00:00
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:
|
You can change default configuration file location with `STARSHIP_CONFIG` environment variable:
|
||||||
|
|
||||||
```sh
|
```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`:
|
Equivalently in PowerShell (Windows) would be adding this line to your `$PROFILE`:
|
||||||
|
|
||||||
```powershell
|
```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`:
|
Or for Cmd (Windows) would be adding this line to your `starship.lua`:
|
||||||
|
|
||||||
```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
|
### Logging
|
||||||
|
Loading…
Reference in New Issue
Block a user