chore: shell config reload info

This commit is contained in:
Jan De Dobbeleer 2020-11-03 14:55:39 +01:00 committed by Jan De Dobbeleer
parent 1043d24f7c
commit bf15095cc1

View file

@ -200,6 +200,12 @@ Edit `$PROFILE` in your preferred PowerShell version and add the following lines
Set-Item -Path Function:prompt -Value $Prompt -Force Set-Item -Path Function:prompt -Value $Prompt -Force
``` ```
Once added, reload your profile for the changes to take effect.
```powershell
. $profile
```
</TabItem> </TabItem>
<TabItem value="zsh"> <TabItem value="zsh">
@ -224,6 +230,12 @@ if [ "$TERM" != "linux" ]; then
fi fi
``` ```
Once added, reload your profile for the changes to take effect.
```shell
source ~/.zshrc
```
</TabItem> </TabItem>
<TabItem value="bash"> <TabItem value="bash">
@ -239,6 +251,18 @@ if [ "$TERM" != "linux" ] && [ -x "$(command -v oh-my-posh)" ]; then
fi fi
``` ```
Once added, reload your profile for the changes to take effect.
```bash
. ~/.bashrc
```
Or, when using `~/.profile`.
```bash
. ~/.profile
```
</TabItem> </TabItem>
<TabItem value="nix"> <TabItem value="nix">
@ -257,6 +281,12 @@ if [ "$IN_NIX_SHELL" == "pure" ]; then
fi fi
``` ```
Once added, reload your profile for the changes to take effect.
```bash
. ~/.bashrc
```
</TabItem> </TabItem>
<TabItem value="fish"> <TabItem value="fish">
@ -268,6 +298,12 @@ function fish_prompt
end end
``` ```
Once added, reload your config for the changes to take effect.
```bash
. ~/.config/fish/config.fish
```
</TabItem> </TabItem>
<TabItem value="nu"> <TabItem value="nu">
@ -277,13 +313,13 @@ Set the prompt and restart nu shell:
config set prompt "= `{{$(oh-my-posh -config ~/.poshthemes/jandedobbeleer.json | str collect)}}`" config set prompt "= `{{$(oh-my-posh -config ~/.poshthemes/jandedobbeleer.json | str collect)}}`"
``` ```
Restart nu shell for the changes to take effect.
</TabItem> </TabItem>
</Tabs> </Tabs>
### 5. Profit ### 5. Profit
Restart your terminal and enjoy your upgraded experience.
🎉🎉🎉 🎉🎉🎉
[wt]: https://github.com/microsoft/terminal [wt]: https://github.com/microsoft/terminal