From 8b5b8dac6568ab1279a998eb1fde1e66962d842d Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Tue, 1 Mar 2022 18:52:19 +0100 Subject: [PATCH] docs: reload shell correctly relates to #663 --- docs/docs/config-tooltips.mdx | 2 +- docs/docs/config-transient.mdx | 2 +- docs/docs/install-customize-cmd.mdx | 4 ++-- docs/docs/install-shells.mdx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/config-tooltips.mdx b/docs/docs/config-tooltips.mdx index 49220788..44066c9d 100644 --- a/docs/docs/config-tooltips.mdx +++ b/docs/docs/config-tooltips.mdx @@ -90,7 +90,7 @@ Invoke Oh My Posh in `.zshrc` and add the following line below: enable_poshtooltips ``` -Restart your shell or reload `.zshrc` using `source ~/.zshrc` for the changes to take effect. +Restart your shell or reload `.zshrc` using `exec zsh` for the changes to take effect. diff --git a/docs/docs/config-transient.mdx b/docs/docs/config-transient.mdx index 8bcf73fb..7630482d 100644 --- a/docs/docs/config-transient.mdx +++ b/docs/docs/config-transient.mdx @@ -108,7 +108,7 @@ Invoke Oh My Posh in `.zshrc` and add the following line below: enable_poshtransientprompt ``` -Restart your shell or reload `.zshrc` using `source ~/.zshrc` for the changes to take effect. +Restart your shell or reload `.zshrc` using `exec zsh` for the changes to take effect. diff --git a/docs/docs/install-customize-cmd.mdx b/docs/docs/install-customize-cmd.mdx index fa1b5c1d..c4d1b549 100644 --- a/docs/docs/install-customize-cmd.mdx +++ b/docs/docs/install-customize-cmd.mdx @@ -39,7 +39,7 @@ eval "$(oh-my-posh --init --shell zsh --config '~/.mytheme.omp.json')" When adjusted, reload your profile for the changes to take effect. ```bash -. ~/.zshrc +exec zsh ``` @@ -58,7 +58,7 @@ eval "$(oh-my-posh --init --shell bash --config '~/.mytheme.omp.json')" When adjusted, reload your profile for the changes to take effect. ```bash -. ~/.bashrc +exec bash ``` diff --git a/docs/docs/install-shells.mdx b/docs/docs/install-shells.mdx index 015e6a04..be9573cd 100644 --- a/docs/docs/install-shells.mdx +++ b/docs/docs/install-shells.mdx @@ -97,7 +97,7 @@ eval "$(oh-my-posh --init --shell bash --config https://raw.githubusercontent.co Once added, reload your profile for the changes to take effect. ```bash -. ~/.bashrc +exec bash ``` Or, when using `~/.profile`.