Issue
I installed fish shell, installed few themes. Applied the theme "agnoster", all good is pretty but I want fish_prompt to override the original one and keep the styles in order to show me full path properly. Currently the full path is a shortcut such as Desktop/Abba
turns to ~D/Abba
and I want to remove the D and will it be ~Desktop/Abba
. How can I override function fish_prompt
properly so that I am able to call the original previous function from the theme to keep up the styles?
Solution
The agnoster theme uses fish's prompt_pwd
function to display the pwd.
That shortens each path component to $fish_prompt_pwd_dir_length characters. Set that variable to 0 to inhibit shortening entirely.
Alternatively, you can change the prompt_pwd function however you want it, e.g. via funced prompt_pwd
(and funcsave prompt_pwd
once you're happy with the result).
Answered By - faho Answer Checked By - Cary Denson (WPSolving Admin)