fix(init): quote path for spaces

resolves #879
This commit is contained in:
Jan De Dobbeleer 2021-08-09 21:13:40 +02:00 committed by Jan De Dobbeleer
parent 68f576692b
commit 9f4f9d30db
4 changed files with 8 additions and 8 deletions

View file

@ -14,13 +14,13 @@ import TabItem from "@theme/TabItem";
<TabItem value="powershell">
```powershell
Export-PoshTheme -FilePath ~/.mytheme.omp.json -Format json
Export-PoshTheme -FilePath "~/.mytheme.omp.json" -Format json
```
Once you're done editing, adjust your `$PROFILE` to use your newly created theme.
```powershell
oh-my-posh --init --shell pwsh --config ~/.mytheme.omp.json | Invoke-Expression
oh-my-posh --init --shell pwsh --config "~/.mytheme.omp.json" | Invoke-Expression
```
</TabItem>
@ -33,7 +33,7 @@ export_poshconfig "~/.mytheme.omp.json" json
Once you're done editing, adjust `~/.zshrc` to use your newly created theme.
```bash
eval "$(oh-my-posh --init --shell zsh --config ~/.mytheme.omp.json)"
eval "$(oh-my-posh --init --shell zsh --config '~/.mytheme.omp.json')"
```
When adjusted, reload your profile for the changes to take effect.
@ -52,7 +52,7 @@ export_poshconfig "~/.mytheme.omp.json" json
Once you're done editing, adjust `~/.bashrc` to use your newly created theme.
```bash
eval "$(oh-my-posh --init --shell bash --config ~/.mytheme.omp.json)"
eval "$(oh-my-posh --init --shell bash --config '~/.mytheme.omp.json')"
```
When adjusted, reload your profile for the changes to take effect.
@ -71,7 +71,7 @@ export_poshconfig "~/.mytheme.omp.json" json
Once you're done editing, adjust `config.fish` to use your newly created theme.
```bash
oh-my-posh --init --shell fish --config ~/.mytheme.omp.json | source
oh-my-posh --init --shell fish --config '~/.mytheme.omp.json' | source
```
Once adjusted, reload your config for the changes to take effect.

View file

@ -1,4 +1,4 @@
export POSH_THEME=::CONFIG::
export POSH_THEME="::CONFIG::"
export POWERLINE_COMMAND="oh-my-posh"
export CONDA_PROMPT_MODIFIER=false

View file

@ -1,4 +1,4 @@
set -g posh_theme ::CONFIG::
set -g posh_theme "::CONFIG::"
set -g POWERLINE_COMMAND "oh-my-posh"
set -g CONDA_PROMPT_MODIFIER false

View file

@ -1,4 +1,4 @@
export POSH_THEME=::CONFIG::
export POSH_THEME="::CONFIG::"
export POWERLINE_COMMAND="oh-my-posh"
export CONDA_PROMPT_MODIFIER=false