Releases: pure-fish/pure
v4.11.0: 📖 New Doc! ✨ AWS Profile Support and 🤖 tests on MacOS
What's Changed
- 📖 docs/revamp documentation and automate screenshots by @edouard-lopez in #343
- ✨ feat: AWS profile prompt by @kwigley in #346
- 🤖 ci: Pass tests under macOS by @hyperupcall in #340
📖 New Documentation
- a better User eXperience (UX)
- a dedicated site,
- searchable content (thanks to mkdocs)
- screenshot of prompt with/without feature enabled (thanks to terminal-screenshot)
- a better organization for options
- linkable content you can share/bookmark
✨ rAWS Profile
Option | Default | Description |
---|---|---|
pure_enable_aws_profile |
true |
Show AWS profile name (based on AWS_VAULT or AWS_PROFILE ). |
pure_symbol_aws_profile_prefix |
Prefix when a AWS profile is activated (default: [undefined][to-set]) |
with a AWS Vault | with a AWS Profile |
---|---|
🤖 Test against MacOS in CI
We use brew
to install Fish.
New Contributors
- @hyperupcall made their first contribution in #340
Full Changelog: v4.10.1...v4.11.0
v4.10.1: Add support for Nix build environment
What's Changed
Nix develop Shell activation
Option | Default | Description |
---|---|---|
pure_enable_nixdevshell |
false |
Indicate if a nix develop shell is activated (based on IN_NIX_SHELL ). |
pure_symbol_nixdevshell_prefix |
❄️ |
otherwise nerdfonts: '' or '' |
pure_color_nixdevshell_prefix |
pure_color_info |
prefix color |
pure_color_nixdevshell_symbol |
pure_color_mute |
symbol color |
Usage
set --universal pure_enable_nixdevshell true
New Contributors
-
Full Changelog: v4.9.0...v4.10.1
v4.9.0: Truncate prompt current_directory and title to keep last components
What's Changed
- feat: truncate prompt current_directory and title to keep last components by @edouard-lopez in #337
Config
💻 Prompt shortening
Option | Default | Description |
---|---|---|
pure_truncate_prompt_current_directory_keeps |
0 |
Truncate working directory path in prompt, but keeps the last to n components (0 full path in current directory) |
set --universal pure_truncate_prompt_current_directory_keeps 2
🪟 Window's title shortening
Option | Default | Description |
---|---|---|
pure_truncate_window_title_current_directory_keeps |
0 |
Truncate working directory path in window title, but keeps the last to n components (0 keep full path in window title) |
set --universal pure_truncate_window_title_current_directory_keeps 2
👏 Thanks
- @1999masih for suggesting the idea
Full Changelog: v4.8.3...v4.9.0
v4.8.2: fix k8s context checking
What's Changed
- fixed duplicate lines in readme by @n-crespo in #333
- fix k8s context checking by @edouard-lopez in #334
Default when no namespace set
New Contributors
Full Changelog: v4.8.1...v4.8.2
v4.8.1: Add color customization to kubernestes symbol
What's Changed
- refactor k8s support #330
🎨 New config in conf.d/pure.fish
_pure_set_default pure_color_k8s_symbol pure_color_dark
Usage
set --universal pure_enable_k8s true # enable the featyre
set --universal pure_color_k8s_symbol cyan # customize color
Preview
👏 Thanks
- @bobsoppe for spotting the gap and submitting the PR
v4.8.0: NixOS support
What's Changed
- feat: add NixOs Dockerfile by @edouard-lopez in #328
NixOS Support
Some of the tests and test utils assumed they were ran by $USER=nemo
. This is not the case in NixOS and probably other distros as well. We fixed the tests for NixOS, but there is still work to do ensure
CI
NixOS Job
We added a job to run the test again NixOS 2.17.0
using Fish 3.6.1
only
Dropping Versions Support
The following versions have been dropped, following our Versions Support Strategy
- Fish: 3.0.2
- Fish: 3.1.2
- Fish: 3.2.2
- Fish: 3.3.1
Mocks
We recently introduced a set of helpers functions to mock and spy system or pure's function. Here is a summary, but be sure to check the content of https://github.com/pure-fish/pure/tree/master/tests/mocks for implementation details.
Mocking
_mock
: Mock a function using the mock intests/mocks/
function_name
: name of the method to mock
_mock_exit_status
: Mock a response exit status for a mock functionfunction_name
: name of the method to mockstatus_code
: response to return
_mock_response
: Mock a response for a mock functionfunction_name
: name of the method to mockresponse
: response to return
_clean_mock
: Clean a mock function (warning: erase the function)function_name
: name of the method to mock
Spying
_spy
: Create a spy method so, you can check it's been called with_has_called
function_name
: name of the method to spy
_has_called
: check spy method has been called, i.e has written to the /tmp/$function_name.mock_callsfunction_name
: name of the that have been spied onfunction_args
# arguments to passed to the spy
Cleaning
_clean_all_mocks
: Clean all mock functions created by_mock
_pure_unmock
: Restore a pure function by reloading its sourcefunction_name
: name of the method to mock
_clean_all_spy_calls
: Clean all spy calls created by_spy
⬇️ Installation
fisher update pure-fish/pure; or fisher install pure-fish/pure
👏 Thanks
- @pacien for spotting the issue, providing feedback about NixOS and his patience
Full Changelog: v4.7.1...v4.8.0
v4.7.1
What's Changed
- fix/missing blank line between prompts 293 by @edouard-lopez in #326
Full Changelog: v4.7.0...v4.7.1
v4.7.0: Virtualenv feature flag and customization symbol
What's Changed
- feat(python): add feature flag to control virtualenv behavior by @edouard-lopez in #325
🐍 Add feature flag and customization symbol for Virtualenv
Preview
Configuration
Option | Default | Description |
---|---|---|
pure_symbol_virtualenv_prefix |
Prefix when a Python virtual env is activated (default: undefined) | |
pure_enable_virtualenv |
true |
Show virtual env name (based on VIRTUAL_ENV or CONDA_DEFAULT_ENV ). |
Default Behaviour: true
❯ set --universal pure_enable_virtualenv true
Feature Enable: true
❯ set --universal pure_enable_virtualenv true
❯ set --universal pure_symbol_virtualenv_prefix "🐍 "
Then activate a virtualenv or simulate one:
❯ set VIRTUAL_ENV /home/test/fake/project/ # simulate virtualenv
~/projects/contributions/pure master ≡
🐍 project ❯
pure_enable_virtualenv.webm
⬇️ Installation
fisher install pure-fish/pure
👏 Thanks
Full Changelog: v4.6.4...v4.7.0
v4.6.4
What's Changed
- fix/remove user and host when outside container by @edouard-lopez in #327
Full Changelog: v4.6.3...v4.6.4
v4.6.3
What's Changed
- Refrain from printing container string matches by @erik-inkapool in #283
New Contributors
- @erik-inkapool made their first contribution in #283
Full Changelog: v4.6.2...v4.6.3