Pretty, minimal, and fast prompt for Fish shell inspired by sindresorhus/pure
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 |
---|---|
We use brew
to install Fish.
Full Changelog: https://github.com/pure-fish/pure/compare/v4.10.1...v4.11.0
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 |
set --universal pure_enable_nixdevshell true
@m15a made their first contribution in https://github.com/pure-fish/pure/pull/338
Full Changelog: https://github.com/pure-fish/pure/compare/v4.9.0...v4.10.1
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
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
Full Changelog: https://github.com/pure-fish/pure/compare/v4.8.3...v4.9.0
Full Changelog: https://github.com/pure-fish/pure/compare/v4.8.1...v4.8.2
_pure_set_default pure_color_k8s_symbol pure_color_dark
set --universal pure_enable_k8s true # enable the featyre
set --universal pure_color_k8s_symbol cyan # customize color
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
We added a job to run the test again NixOS 2.17.0
using Fish 3.6.1
only
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
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.
_mock
: Mock a function using the mock in tests/mocks/
function_name
: name of the method to mock_mock_exit_status
: Mock a response exit status for a mock function
function_name
: name of the method to mockstatus_code
: response to return_mock_response
: Mock a response for a mock function
function_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_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_calls
function_name
: name of the that have been spied onfunction_args
# arguments to passed to the spy_clean_all_mocks
: Clean all mock functions created by _mock
_pure_unmock
: Restore a pure function by reloading its source
function_name
: name of the method to mock_clean_all_spy_calls
: Clean all spy calls created by _spy
fisher update pure-fish/pure; or fisher install pure-fish/pure
Full Changelog: https://github.com/pure-fish/pure/compare/v4.7.1...v4.8.0
Full Changelog: https://github.com/pure-fish/pure/compare/v4.7.0...v4.7.1
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 ). |
true
❯ set --universal pure_enable_virtualenv true
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 ❯
fisher install pure-fish/pure
Full Changelog: https://github.com/pure-fish/pure/compare/v4.6.4...v4.7.0
Full Changelog: https://github.com/pure-fish/pure/compare/v4.6.3...v4.6.4
Full Changelog: https://github.com/pure-fish/pure/compare/v4.6.2...v4.6.3