- realpath isn't necessary for $PWD
- match subdirectories of all ignore paths (otherwise the vcs segment is missing for the directory itself, but shows in subdirectories, which is weird)
- check whether $theme_vsc_ignore_paths is set to save a command substitution
Per bobthecow:
"In keeping with bobthefish's goal to be opinionated but flexible,
let's do this with one option, not three. I'm leaning toward:
set -g theme_cursor_on_new_line yes
Then:
Always show the arrow at the end of the first line
Always show a minimalist arrow at the start of the next line"
(and support for abbreviated project-relative paths!)
Use `fish_prompt_pwd_dir_length` and `theme_project_dir_length` to control the number of characters shown from each parent directory name.
Fixes#68
* Default to showing vi mode prompt (if the current bind mode is vi). Allow overriding by setting it `theme_display_vi` to `no`.
* Remove `theme_display_vi_hide_mode`, because I don't like the prompt jumping around when changing modes.
* Override `fish_mode_prompt` because we're already handling it inside `fish_prompt`. Add a note so future code archeologists can figure out how to override.
* Add support for `replace-one` bind mode.
Fixes#65
* Refactor fish_prompt.fish to use semantically named variables
throughout the script rather than specific colors. Set those variables
to various colors depending on the `theme_color_scheme` variable.
* Add the `__bobthefish_display_colors` function to easily test and
preview different color schemes.
* Update documentation.
Fixes#7.
Allow users to avoid ambiguous width glyphs to prevent issues with guessing the width of multibyte characters.
For now, this just avoids `…`. We'll add some more if we run into them.
Fixes#10