Skip to content

Custom CachyOS FISH configuration broken part of functonality #18

@va-al

Description

@va-al

A problem description: There are minor cases when you need to delete some data from shell history due to security/privacy reasons. For this purpose there are history delete and history delete --contains or history delete --exact built-in commands in Fish. Although it doesn't work with CachyOS custom settings.

Expected behavior: history delete --contains $pattern interactively deletes from the history all $pattern matched records.

Actual behavior: The command only lists the recent history. As far as I can see by my tests ALL history's sub-commands are broken now (search, append, delete, etc).

The reason(if known):
The function redefined at /usr/share/cachyos-fish-config/cachyos-config.fish @ line 70.

function history builtin history --show-time='%F %T ' end

As far as I understood the "--show-time" modificator is only compatible with history listing.

Proposed solution:
Personally for me, I've disabled this hack. Although, it breaks down the native Fish functionality, so perhaps, it should be fixed Distro-wide somehow in new releases.

Proofs:

Image

Image

Extra details:
Image
It's almost default Gnome based installation of CachyOS a couple weeks old.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions