docs: add bash profile context

resolves #939
This commit is contained in:
Jan De Dobbeleer 2021-09-14 18:39:27 +02:00 committed by Jan De Dobbeleer
parent ebaa20ea3f
commit a549cc87c6
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ When adjusted, reload your profile for the changes to take effect.
export_poshconfig "~/.mytheme.omp.json" json export_poshconfig "~/.mytheme.omp.json" json
``` ```
Once you're done editing, adjust `~/.bashrc` to use your newly created theme. Once you're done editing, adjust `~/.bashrc` (could be `~/.profile` or `~/.bash_profile` depending on your environment) to use your newly created theme.
```bash ```bash
eval "$(oh-my-posh --init --shell bash --config '~/.mytheme.omp.json')" eval "$(oh-my-posh --init --shell bash --config '~/.mytheme.omp.json')"

View file

@ -53,7 +53,7 @@ source ~/.zshrc
</TabItem> </TabItem>
<TabItem value="bash"> <TabItem value="bash">
Add the following to `~/.bashrc` (or `~/.profile` on MacOS): Add the following to `~/.bashrc` (could be `~/.profile` or `~/.bash_profile` depending on your environment):
```bash ```bash
eval "$(oh-my-posh --init --shell bash --config ~/jandedobbeleer.omp.json)" eval "$(oh-my-posh --init --shell bash --config ~/jandedobbeleer.omp.json)"