faho · GitHub

Allows the length of each shortened path component to be customized by setting the `fish_prompt_pwd_abbr` variable to the number of extra characters to include. Maintains the default behavior of shortening path components to just one character. You can also set `fish_prompt_pwd_abbr` to the empty value to disable shortening completely.

@faho self-assigned this

Oct 13, 2015

@faho faho added the docs

An issue/PR that touches or should touch the docs

label

Oct 24, 2015

@faho faho added the release notes

Something that is or should be mentioned in the release notes

label

Oct 26, 2015

@faho faho added this to the next-2.x milestone

Oct 26, 2015

0rax added a commit to 0rax/fishline that referenced this pull request

May 15, 2016
- VIMODE: remove force delete of fish_mode_prompt as it was shown the
  first time nonetheless. Will require the user to deactivate the
  default fish_mode_promopt by creating an empty function
- PWD: now uses prompt_pwd instead of the path directly as some
  modification will be added to this function alowing the user to set
  the abbreviation length (fish-shell/fish-shell#2473)

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators

Apr 17, 2020

Read the original on github.com ↗