Skip to content

Releases: pure-fish/pure

v4.2.3: Skip Linux-only methods to detect container on MacOS

08 Oct 05:51
Compare
Choose a tag to compare

🐛 Fix: Linux-only methods to detect container on MacOS

Issue #295 was caused by functions that expected /proc/ to exist on the system to be executed. However, those are Linux-only approach.
So, running them only for Linux declared OS (cf. uname -s) fixed the issue in #298 .

⬇️ Installation

The project has a new home, thanks to @rafaelrinaldi. It's now under pure-fish organization:

fisher install pure-fish/pure

👏 Thanks

v4.2.2: Fix MacOS container detection #295

06 Oct 14:12
3b3ba00
Compare
Choose a tag to compare

Fix MacOS container detection

Detecting if we run inside a container or a bare OS require hacks specific to OS. The _pure_detect_container_by_pid_method isn't compatible with MacOS, as it's based on /proc/ contains.

  • warning: An error occurred while redirecting file '/proc/1/cgroup' #295

⬇️ Installation

The project has a new home, thanks to @rafaelrinaldi. It's now under pure-fish organization:

fisher install pure-fish/pure

👏 Thanks

v4.2.1: 🐍 Displaying conda/virtualenv env name with correct spacing

06 Oct 14:08
Compare
Choose a tag to compare

🐍 Displaying conda/virtualenv env name with correct spacing

  • Displaying conda/virtualenv env name has incorrect spacing #276 #285

⬇️ Installation

The project has a new home, thanks to @rafaelrinaldi. It's now under pure-fish organization:

fisher install pure-fish/pure

👏 Thanks

v4.2.0: ⛵ Migrate to fishtape 3

06 Oct 10:27
e2e0134
Compare
Choose a tag to compare

♻️ Migrate to fishtape 3

  • Tests and CI have been migrated to fishtape 3 #275
  • supported version are 3.1.2 and 3.3.1 (I will add CI for newer in next releases)
  • Improve container detection method (by PID and by cgroup) 6fbf483

⬇️ Installation

The project has a new home, thanks to @rafaelrinaldi. It's now under pure-fish organization:

fisher install pure-fish/pure

4.1.0: Show user@host when running in a container

06 Oct 10:21
49e10fd
Compare
Choose a tag to compare

Feature

  • Show-username-host-if-inside-a-container #271

⬇️ Installation

The project has a new home, thanks to @rafaelrinaldi. It's now under pure-fish organization:

fisher install pure-fish/pure

v4.0.0: 🏡 New Home

20 May 11:46
Compare
Choose a tag to compare

Being Human

Home Mean You are Welcome

As you might have realized, @rafaelrinaldi transferred the project from his personal repository to https://github.com/pure-fish/pure/ organization.

The goals of this transfer are:

It's also a way to reflect that the project evolved from a pet-project to a community project with almost ~900 ⭐

💓 Project Pulse

This is a long pending release note, you are probably using a more recent version (e.g. 4.1.1). At the time of the transfer request I was pretty active maintaining the project, but by the time we achieve it I had other priorities pop-up 🧒👶.

Thus, I'm publishing this release note as I'm resuming contribution.

New features and bugfixes will come in the coming weeks/months, thanks to many contributors! But before merging PRs, I will first focus on making the codebase stable and testable again by finishing the migration to Fishtape 3.

Release

This major release break some variables related to SSH to introduce support for containers (docker and lxc).
Be sure to read the Migration guide section carefully ⬇️ .

Features

  • A new home and ownership for the project! #249
  • Show username@host if inside a container #241

Fixes

  • Migrates --quiet to -q #278

⬇️ Installation

The project has a new home, thanks to @rafaelrinaldi. It's now under pure-fish organization:

-fisher install rafaelrinaldi/pure
+fisher install pure-fish/pure

⚠️ Breaking changes

  • remove official support for OMF and Fundle #248
  • Replace _pure_prompt_ssh_host by _pure_user_at_host to support container c074b08 01a9b6a

Migration Guide v3.x to v4.0

If you customized your pure using your ~/config.fish you must update it by renaming some variables.

🚑 Script

We provide a migration script to help you with this tedious work:

tools/migration-to-4.0.0.fish [/path/to/your/config.fish]

Variables Renaming

💣 SSH Hostname Variable

-pure_color_ssh_hostname
+pure_color_hostname

💣 SSH At Sign (@) Variable

-pure_color_ssh_separator
+pure_color_at_sign

💣 SSH Normal Username Variable

-pure_color_ssh_user_normal
+pure_color_username_normal

💣 SSH Root Username Variable

-pure_color_ssh_user_root
+pure_color_username_root

v3.5.0: 1️⃣ Add single-line prompt flag

07 Jan 20:25
Compare
Choose a tag to compare

1️⃣ Add single-line prompt flag

Let user have a more compact prompt, where everything is show on the same line.

Option Default Description
pure_enable_single_line_prompt false true: Compact prompt as a single line

Preview

feature-pure_enable_single_line_prompt

⬇️ Installation

fisher install rafaelrinaldi/pure

👏 Thanks


⚠️ Tests are going crazy at the moment, should be fixed once fishtape 3.0 is released, and we do the switch. If you encounter any problem, revert to previous version

fisher install rafaelrinaldi/[email protected]

v3.4.2: 🐛 Fix `id: illegal option --` on MacOS

28 Dec 15:20
Compare
Choose a tag to compare

🐛 Fix id: illegal option -- on MacOS

Linux and MacOS commands differ in the options they provided, the former often providing extensions while the latter restrict itself to POSIX. We fallback to POSIX for id, date, wc and rm commands.

Run Tests Against MacOS

I also started to extend our Github workflow so the CI run tests against MacOS.

⬇️ Installation

fisher install rafaelrinaldi/pure

👏 Thanks

v3.4.1: 🚀 Prefix prompt when logged in as root

27 Dec 00:01
Compare
Choose a tag to compare

🚀 Add support for showing subsecond in command duration

Add a flag to prefix prompt when logged in as root (with a customizable symbol).

Option Default Description
pure_show_prefix_root_prompt false true: shows prompt prefix when logged in as root.
pure_symbol_prefix_root_prompt # Prefix prompt when logged in as root
pure_color_prefix_root_prompt pure_color_danger

Preview

prefix_root_prompt

⬇️ Installation

fisher install rafaelrinaldi/pure

v3.3.5: 🐛 Fix source error when installing with fisher

21 Dec 07:57
Compare
Choose a tag to compare

🐛 Fix source error when installing with fisher

Pure was assuming that it was going to be installed in ~/.config/fish directory, but that's not always the case (cf. #245 #250).

⬇️ Installation

fisher install rafaelrinaldi/pure

👏 Thanks