Closed rocketraman closed 2 months ago
@rocketraman Similar to the example in docs, you can utilize a simple function to achieve this:
function rerender_on_dir_change --on-variable PWD
omp_repaint_prompt
end
@lewis-yeung Thank you, that works perfectly! Interesting that this used to work out of the box, but now requires an explicit function.
Code of Conduct
What happened?
I use the fish
Alt+←
andAlt+→
commands to navigate my directory history -- these are bound to theprevd
andnextd
commands.However, when using
Alt+←
andAlt+→
oh-my-posh prompt does not update. When using theprevd
andnextd
commands, the prompt does update. If I type inpwd
I can see that the directory has in fact changed.Note that I'm positive this used to work, but I can't say for sure when it broke.
Using oh-my-posh 23.10.1 and fish version 3.7.0.
Theme
jandedobbeleer.omp.json (lightly customized to add tooltips and a couple of segments)
What OS are you seeing the problem on?
Linux
Which shell are you using?
fish
Log output