mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-09-19 21:17:31 -07:00
docs: faq for Fish PWD history navigation
As per https://github.com/JanDeDobbeleer/oh-my-posh/issues/5567 a function is needed to integrate Fish directory history navigation with oh-my-posh. Add an FAQ entry about this.
This commit is contained in:
parent
8834aafd7c
commit
a3f58ecc37
|
@ -306,6 +306,18 @@ After that, you can use the value in a template. The following replicates the [e
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Fish: Integrate with `Alt+←` and `Alt+→` Bindings to `prevd` and `nextd`
|
||||||
|
|
||||||
|
Fish supports using `Alt+←` (Alt+Left) and `Alt+→` (Alt+Right) bindings to [navigate the directory history](https://fishshell.com/docs/current/interactive.html#id13).
|
||||||
|
|
||||||
|
To have oh-my-posh update the directory context as the directory history is navigated, use a function that calls `omp_repaint_prompt` when the `$PWD` variable changes:
|
||||||
|
|
||||||
|
```fish
|
||||||
|
function rerender_on_dir_change --on-variable PWD
|
||||||
|
omp_repaint_prompt
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
### After updating my Nerd Font to a newer version, the prompt displays unknown characters
|
### After updating my Nerd Font to a newer version, the prompt displays unknown characters
|
||||||
|
|
||||||
Nerd Fonts moved the icons to a different location in the font for v3.
|
Nerd Fonts moved the icons to a different location in the font for v3.
|
||||||
|
|
Loading…
Reference in a new issue