Oh-my-fish: How do I show the full path instead of fish showing the first letter of the directory?

Created on 11 Oct 2020  Â·  4Comments  Â·  Source: oh-my-fish/oh-my-fish

THe problem is that with fish it shows the current directory like this:

~/D/t/test1

I want it to show this instead:
~/Desktop/testing/test1.

Is there a way to achieve this?

Most helpful comment

THanks mate.

On Mon, Oct 19, 2020 at 6:58 AM Justin Hileman notifications@github.com
wrote:

Add set -gx fish_prompt_pwd_dir_length 0 to ~/.config/fish/config.fish
(or any other config file that's sourced when starting your shell, e.g.
~/.config/omf/init.fish, or any file at all in fish conf.d).

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oh-my-fish/oh-my-fish/issues/786#issuecomment-711413796,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIKO7IN3AH25TCDCATWD5Q3SLNCGPANCNFSM4SLOELXA
.

All 4 comments

This is a fish-wide setting. Set fish_prompt_pwd_dir_length to 0 to stop shortening parent directory names, or any other number to show 2, 3, 4 characters.

I am sorry but where would I go exactly, do I modify the ~/.config/fish/fish_variables file?

Add set -gx fish_prompt_pwd_dir_length 0 to ~/.config/fish/config.fish (or any other config file that's sourced when starting your shell, e.g. ~/.config/omf/init.fish, or any file at all in fish conf.d).

THanks mate.

On Mon, Oct 19, 2020 at 6:58 AM Justin Hileman notifications@github.com
wrote:

Add set -gx fish_prompt_pwd_dir_length 0 to ~/.config/fish/config.fish
(or any other config file that's sourced when starting your shell, e.g.
~/.config/omf/init.fish, or any file at all in fish conf.d).

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/oh-my-fish/oh-my-fish/issues/786#issuecomment-711413796,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIKO7IN3AH25TCDCATWD5Q3SLNCGPANCNFSM4SLOELXA
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andrewrynhard picture andrewrynhard  Â·  7Comments

sidahmed-malaoui picture sidahmed-malaoui  Â·  4Comments

NineSwordsMonster picture NineSwordsMonster  Â·  4Comments

Ramblurr picture Ramblurr  Â·  4Comments

kaelumania picture kaelumania  Â·  6Comments