v2.0.0: Fish 3.0.0 | Vim mode | Customization | Tests
With this major release we
Be sure to read the Migration guide section carefully.
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 renamedpure_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
withfisher
in Dockerfile #110