Releases: pure-fish/pure
v4.6.2
v4.6.1
What's Changed
- fix/tests by @edouard-lopez in #324
- Add test helpers function:
_spy
,_has_called
,_cleanup_spy_calls
- renaming:
setup
→before_all
,teardown
→after_all
Full Changelog: v4.6.0...v4.6.1
v4.6.0: Kubernetes context and namespace, message warn missing requirement, pull request template
What's Changed
- feat/add kubernetes k8s support by @edouard-lopez in #323
- Pull request template
- Full Changelog: v4.5.0...v4.6.0
☸️ Kubernetes Context and Namespace
Configuration
Option | Default | Description |
---|---|---|
pure_symbol_k8s_prefix |
☸ |
Prefix when being connected to Kubernetes/K8s |
pure_enable_k8s |
false |
true : shows kubernetes context and namespace. |
Default Behaviour: false
❯ set --universal pure_enable_k8s false
~/projects/contributions/pure master ≡
Feature Enable: true
❯ set --universal pure_enable_k8s true
~/projects/contributions/pure master ≡ ☸ int-infra-eks-cluster-eu-west-3/qraft
💡 Warning Message When Command Required by Feature is Missing
For now, this mechanism is only on the k8s feature, but that's something I would like to add to other features.
pure-k8s-feature.webm
The detection behaviour is implemented in _pure_check_availability
function & tests and it's used like:
_pure_check_availability <feature_name> <cmd>
Where feature_name
is the feature that requires the command/function cmd
Pull request template
Link to resources and how-tos to give contributors autonomy. See .github/pull_request_template.md for full content.
Preview
⬇️ Installation
fisher install pure-fish/pure
👏 Thanks
4.5.0: Custom window's and prompt's title shortening flag
fish_title
: add setting to configure pwd dir length
Add new pure_title_dir_length
setting (default to 0
) to configure the pwd
dir length. 0 means complete directory name.
💻 Prompt shortening
Option | Default | Description |
---|---|---|
pure_shorten_prompt_current_directory_length |
0 |
Shorten every prompt path component but the last to X characters (0 do not shorten) |
No shortening with 0
❯ set --universal --export pure_shorten_prompt_current_directory_length 0
~/projects/contributions/pure master ≡ ⇡
Custom shortening
❯ set --universal --export pure_shorten_prompt_current_directory_length 1
~/p/c/pure master ≡ ⇡
❯ set --universal --export pure_shorten_prompt_current_directory_length 2
~/pr/co/pure master ≡ ⇡
🪟 Window's title shortening
Option | Default | Description |
---|---|---|
pure_shorten_window_title_current_directory_length |
0 |
Shorten every window title path component but the last to X characters (0 do not shorten) |
No shortening with 0
❯ set --universal --export pure_shorten_window_title_current_directory_length 0
Custom shortening
❯ set --universal --export pure_shorten_window_title_current_directory_length 1
⬇️ Installation
fisher install pure-fish/pure
👏 Thanks
v4.4.4: Fish 3.6.1 and fix container detection default behavior
🐛 Remove user@host
information by default
The prompt behaviour was inconsistent with the pure_enable_container_detection
flag. The component user@host
was shown when it was not supposed to be (cf. #319).
Now, you need to enable the feature to see the prompt when inside container:
set --universal pure_enable_container_detection true
⬇️ Installation
fisher install pure-fish/pure
Thanks
@broizter WSL 1 shows user@hostname #319
🌱 Fish 3.6.1
is supported
I updated the CI to test against 3.6.1
using pure-fish/docker-fish image.
v4.4.2: Restore fish_prompt to default content after `_pure_uninstall` run #316
🐛 Restore fish_prompt to default content after _pure_uninstall
run
pure-related variables were erased, but the fish_prompt
file was still calling pure
functions and throwing a lot of errors.
To mitigate this, we replace fish_prompt.fish
from the user ($__fish_config_dir
) by the default one (__fish_data_dir
)
👏 Thanks
- @andreysoktoev for raising #314
⬇️ Installation
fisher install pure-fish/pure
What's Changed
- fix: restore fish_prompt to default content after _pure_uninstall run by @edouard-lopez in #316
Full Changelog: v4.4.1...v4.4.2
v4.4.1: Fix The path part doesn't show
🐛 The path part doesn't show
When git
is missing from the system, we incorrectly aborted the whole prompt, and we even had a test case for that 😆
So now, we simply skip git
-related features when it is missing and carry on (cf. #313).
👏 Thanks
⬇️ Installation
fisher install pure-fish/pure
📦 v4.4.0: Add SSH and container symbol customization
As for previous features, the customization is opt-in, and it's up to the user to configure it.
🐋 Container detection and prefix
The container detection is enabled by default, but you need to be inside a container to see its effect:
Default settings
pure_enable_container_detection true
pure_symbol_container_prefix "" # suggestion: '🐋' or '📦'
Usage
The default symbol is an empty string, you will need to set what you want like:
❯ set --universal pure_symbol_container_prefix '🐋'
💻 SSH detection and prefix
The SSH detection is enabled by default, but you need to be inside a container to see its effect:
Default settings
_pure_set_default pure_symbol_ssh_prefix "" # suggestion: 'ssh:/' or '🔗🔐🔒🌐'
Usage
The default symbol is an empty string, you will need to set what you want like:
❯ set --universal pure_symbol_ssh_prefix 'ssh:/'
⬇️ Installation
fisher install pure-fish/pure
v4.3.1: Fix SSH prompt
🐛 Remove unwanted character
- fix(prompt): remove unwanted characters in my prompt #305
⬇️ Installation
fisher install pure-fish/pure
👏 Thanks
- @patricklewis for raising the #305
v4.3.0: Add flag to disable container detection
🐛 Remove unwanted character
- fix/301 voidlinux container detection #302
🏴 Add flag to disable container detection
Let user disable container detection as detecting this is not an exact science.
Option | Default | Description |
---|---|---|
pure_enable_container_detection |
true |
false : Do not check if run in container (e.g. docker , podman , LXC /LXD , etc.). |
Enable feature
❯ set --universal pure_enable_container_detection true
⬇️ Installation
fisher install pure-fish/pure