- Improve performance significantly in the base case (i.e. when git or something isn't slowing it down anyway).
- Make `bobthefish_display_colors` a non-underscore function. It's meant for public use :)
- Support previewing _different_ color schemes via `bobthefish_display_colors`. Pass a color scheme name, or `--all` to preview everything.
- Make color overrides a bit fishier: use a `bobthefish_colors` function to override color schemes, rather than declaring a whole pile of variables.
- Add support for a base color scheme in `bobthefish_colors`, in case you don't want to override everything.
- Add a deprecation notice with upgrade instructions for users with old-style custom color schemes.
This gets suuuuper slow for big repos. Support disabling it globally, via `theme_display_git_dirty`, or per-repo, using the `bash.showDirtyState` git config.
Followed established pattern for chruby and rbenv, adding the ruby
version number from asdf to the ruby prompt, only when the local
ruby version differs from the system ruby.
Note that asdf tracks its versions in a dot file (.tool-versions) so
the concept of what is global/system vs what is local simply depends
upon what file asdf is using to determine the correct version.
Fortunately, asdf reports the .tool-versions file when querying for
the current version.
The downside to this is that correct behavior of this patch will
depend upon the format asdf uses for their provenance string.
See https://github.com/asdf-vm/asdf for details about asdf
- Include glyphs for all the glyphy segments
- Make segment display names consistent with variable names
- Add virtualgo segment
- Update user@hostname segment to match current style
- Use a virtualgo color variable, even though it's the same as virtualenv.
- Switch to a cleaner nerd fonts go glyph.
- Add a non-nerd fonts go glyph (empty for now, but TBD if this changes).
- Show if `theme_display_user` / `theme_display_hostname` is set to `yes`.
- Show both user and hostname when using SSH.
- Show user if `$default_user` is set and it isn't the current user.
- 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"
In order for the right prompt to work the new line must start with at
least one character. A space is used for this purpose. This looks a bit
strange so added option to include the default right arrow glyph. Lastly,
added option to remove the right arrow glyph on the first (top) 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
* Rearrange overrides so they're closer to what they're overriding
* Remove some unused Powerline glyph definitions
* Use all the pretty Octicons when Nerd Fonts support is enabled
Improved the detection of Vagrant provider. The previouse didn't
correctly detect which provider was used.
Added support for detecting the state of Parallels vagrant provider.
* 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.