Skip to content

Releases: pure-fish/pure

v2.1.1: fix fish_hybrid_key_bindings support

22 Feb 03:52
Compare
Choose a tag to compare

The new vi mode indicator now support using hybrid bindings, i.e. fish_hybrid_key_bindings, thanks to @nesmyslny (see #147).

Installation

fisher add rafaelrinaldi/pure

v2.1.0: VI mode prompt

19 Feb 16:12
Compare
Choose a tag to compare

Changes the default behaviour of the prompt in vi mode to use whenever the user is not in insert mode. This matches the behaviour of the zsh version of Pure:

pure-vi-mode-support
Toggling between mode using Esc and i key.

Customization

We introduce a new variable to control the symbol for reverse prompt:

pure_symbol_reverse_prompt ""  # used for VI mode

And a flag to control the feature:

# VI mode indicator
# true (default):  indicate a non-insert mode by reversing the prompt symbol (❮)
# false:           indicate vi mode with [I], [N], [V]  
pure_reverse_prompt_symbol_in_vimode true

Installation

fisher add rafaelrinaldi/pure

Thanks

@codesections for his contribution 👏 #139 #140

v2.0.0: Fish 3.0.0 | Vim mode | Customization | Tests

18 Feb 21:52
Compare
Choose a tag to compare

With this major release we ⚠️ break a lot of things as we renamed a bunch of our variables to harmonize naming and follow our contributing guide.
Be sure to read the Migration guide section carefully.

Pure with dark colorscheme Pure with light colorscheme

Features

  • fish 3.0.0 support 🎉 (see #126, #127, #128) ;
  • More customization control (see #103, v1.11.0) ;
  • Vim mode support (see #45) ;
  • Travis configuration to run against multiple fish versions (see #122) ;
  • Add tests massively #63, #96 ;
  • Add a CONTRIBUTING.md ;
  • add pure_version variable (see v1.12.0)
  • Let user customize fish_right_prompt (see #104, v1.13.0)

Installation

fisher add rafaelrinaldi/pure

Migration Guide v1.x to v2.0.0

If you customized your pure using your ~/config.fish you will have to update it by renaming some variables and changing default value to others.

🚑 Script

We provide a migration script to help you with this tiedous work. However, you still might have to do some manual edit:

tools/migration-to-2.0.0.fish [/path/to/my/config.fish]

Variables Type Changes

💣 Fresh Session

  • _pure_fresh_session changed from integer to a boolean 9f8b8a9

    -set -g _pure_fresh_session 1
    +set -g _pure_fresh_session true

💣 Beginning Prompt With Current Working Directory

  • pure_user_host_location has been renamed pure_prompt_begin_with_current_directory as an affirmative boolean statement 731a406

    -_pure_set_default pure_user_host_location 0
    +_pure_set_default pure_prompt_begin_with_current_directory true

See conf.d/pure.fish for details.

💣 Separate Prompt on Error

  • pure_separate_prompt_on_error changed from integer to a boolean 74f028d

    -_pure_set_default pure_separate_prompt_on_error 0
    +_pure_set_default pure_separate_prompt_on_error false

Variables Renaming

💣 Base Color

  • rename $pure_color_white as $pure_color_light

    -pure_color_white
    +pure_color_light
  • rename $pure_color_yellow as $pure_color_warning

    -pure_color_yellow
    +pure_color_warning
  • rename $pure_color_red as $pure_color_danger

    -pure_color_red
    +pure_color_danger
  • rename $pure_color_magenta as $pure_color_success

    -pure_color_magenta
    +pure_color_success
  • rename $pure_color_gray as $pure_color_mute

    -pure_color_gray
    +pure_color_mute
  • rename $pure_color_cyan as $pure_color_info

    -pure_color_cyan
    +pure_color_info
  • rename $pure_color_blue as $pure_color_primary

    -pure_color_blue
    +pure_color_primary

💣 Prompt Colors Variables

  • rename $pure_color_symbol_error as $pure_color_prompt_on_error 7de59a3

    -pure_color_symbol_error
    +pure_color_prompt_on_error
  • rename $pure_color_symbol_success as $pure_color_prompt_on_success f94207b

    -pure_color_symbol_success
    +pure_color_prompt_on_success

💣 Git Feature Variables

  • rename $pure_symbol_git_arrow_up as $pure_symbol_git_unpushed_commits

    -pure_symbol_git_arrow_up
    +pure_symbol_git_unpushed_commits
  • rename $pure_symbol_git_arrow_down as $pure_symbol_git_unpulled_commits

    -pure_symbol_git_arrow_down
    +pure_symbol_git_unpulled_commits
  • split $pure_color_git_pending_commits as $pure_color_git_unpushed_commits and $pure_color_git_unpulled_commits

    -pure_color_git_pending_commits
    +pure_color_git_unpushed_commits
    +pure_color_git_unpulled_commits

💣 Max Execution Time Feature Variables

  • rename $pure_command_max_exec_time as $pure_threshold_command_duration

    -pure_command_max_exec_time
    +pure_threshold_command_duration

💣 Title Bar Variable

  • rename $pure_symbol_horizontal_bar as $pure_symbol_title_bar_separator

    -pure_symbol_horizontal_bar
    +pure_symbol_title_bar_separator

💣 Beginning Of Prompt Variable

  • rename $pure_prompt_begin_with_current_directory as $pure_begin_prompt_with_current_directory

    -pure_prompt_begin_with_current_directory
    +pure_begin_prompt_with_current_directory

💣 SSH Variable

  • rename $pure_color_ssh_host as $pure_color_ssh_hostname
    -pure_color_ssh_host
    +pure_color_ssh_hostname

💣 Current Working Directory Variable

  • rename $pure_color_current_folder as $pure_color_current_directory

    -pure_color_current_folder
    +pure_color_current_directory

Fixes

  • Replace fisherman with fisher in Dockerfile #110

v1.13.0: Let user customize fish_right_prompt

08 Jan 15:52
Compare
Choose a tag to compare

Feature

  • let user customize their right prompt in an update-resistant way #104
# Right Prompt variables
_pure_set_default pure_right_prompt ""
_pure_set_default pure_color_right_prompt $pure_color_normal

screenshot

Quality

  • test fish_right_prompt.fish 4196b44
  • test right_prompt related configuration bac5393

v1.12.0: Provide $pure_version variable

08 Jan 14:43
Compare
Choose a tag to compare

Feature

You can see which version of pure you run, to help during debug (see #114):

echo $pure_version

Quality

v1.11.0: More customization

08 Jan 13:49
Compare
Choose a tag to compare

Feature

screenshot

Quality

  • test fish_title.fish

Thanks to @boyeborg and @schrodincat for their contributions

v1.10.1: Tests codebase

05 Jan 11:00
Compare
Choose a tag to compare

Quality

  • Tests have been implemented massively #96 🎉 (see ./tests/ and TravisCI).

pure fish

Fixes

  • fixes test: Missing argument at index 2 after manual install on fish-3.0.0. #112

v1.10.0: Alt ←/→, Refactor

14 Dec 14:44
Compare
Choose a tag to compare
  • Refactor prompt code #68
    • tests are on their way #96
  • First line isn't rendered on Terminal.app open in macOS #67
  • Working Directory not printed on first run #62
  • Update first line on "Alt + ←" and "Alt + →" #66
  • skip defining hostname on fish 3.x #98
  • new code convention described in CONTRIBUTING.md:
    • private entities are prefix with _pure_
    • public entities are prefix with pure_

Code refactoring help us introduce a lots of tests and better project structure for upcoming 2.0.0.

Thanks to: @comfortablynick and @schrodincat for his multiple PRs 👍

v1.9.0: Prepare for fish 3.x

10 Dec 00:15
7c8323f
Compare
Choose a tag to compare
  • ⚠️ require fish ≥2.4
  • #86 fixes a problem when uninstalling pure where the function pre_prompt is still defined, by @jorgebucaran
  • #89 document workaround for Oh My Fish users, by @benedictleejh
  • #91 Fix compatibility with fish 3: ^ to redirect stderr is deprecated, prefer 2>, by @faho

v1.8.0: Support Fundle installation

10 Sep 15:12
Compare
Choose a tag to compare

Add support for fundle install;

fundle plugin rafaelrinaldi/pure;
fundle install;

Automatically test installation methods with CI (manual, fisherman, omf and fundle)