docs(fish): lower version requirement

This commit is contained in:
L. Yeung 2024-07-10 20:28:16 +08:00 committed by Jan De Dobbeleer
parent 66f1347357
commit ad34a6e530
4 changed files with 3 additions and 8 deletions

View file

@ -57,9 +57,8 @@ func (e *Engine) Tooltip(tip string) string {
switch e.Env.Shell() { switch e.Env.Shell() {
case shell.PWSH, shell.PWSH5: case shell.PWSH, shell.PWSH5:
e.rprompt = text e.rprompt = text
e.rpromptLength = length
e.currentLineLength = e.Env.Flags().Column e.currentLineLength = e.Env.Flags().Column
space, ok := e.canWriteRightBlock(true) space, ok := e.canWriteRightBlock(length, true)
if !ok { if !ok {
return "" return ""
} }

View file

@ -275,10 +275,6 @@ setopt appendhistory
This is most likely caused by two Oh My Posh init lines in your `.zshrc`, remove one of them. See [here][zsh-init]. This is most likely caused by two Oh My Posh init lines in your `.zshrc`, remove one of them. See [here][zsh-init].
### Fish: $(...) is not supported
You should update fish to v3.4.0 or higher. Fish supports `$(...)` and `"$(...)"` since v3.4.0, as described in its [changelog][fish-changelog].
### Fish: Display current bind (Vim) mode ### Fish: Display current bind (Vim) mode
Use the `set_poshcontext` function to export the current mode. Note that scope shadowing must be disabled in order to Use the `set_poshcontext` function to export the current mode. Note that scope shadowing must be disabled in order to

View file

@ -138,7 +138,7 @@ exec elvish
<TabItem value="fish"> <TabItem value="fish">
:::caution :::caution
Oh My Posh requires fish v3.4.0 or higher. It is recommended to use the latest version of Fish. Versions below 3.1.2 have issues displaying the prompt.
::: :::
Adjust the Oh My Posh init line in `~/.config/fish/config.fish` by adding the `--config` flag with Adjust the Oh My Posh init line in `~/.config/fish/config.fish` by adding the `--config` flag with

View file

@ -85,7 +85,7 @@ exec elvish
<TabItem value="fish"> <TabItem value="fish">
:::caution :::caution
Oh My Posh requires fish v3.4.0 or higher. It is recommended to use the latest version of Fish. Versions below 3.1.2 have issues displaying the prompt.
::: :::
Initialize Oh My Posh in `~/.config/fish/config.fish`: Initialize Oh My Posh in `~/.config/fish/config.fish`: