Artix Linux Forum

Artix Linux => Package management => AUR Packages => Topic started by: TheExplorer on 23 September 2023, 15:40:33

Title: HSTR doesn't work on a new installation
Post by: TheExplorer on 23 September 2023, 15:40:33
There's a nice bash history application to ease searching through it, called hstr (https://github.com/dvorka/hstr).

You can compile it yourself (though involves some sources editing) or build via AUR here (https://aur.archlinux.org/packages/hstr) (easy and straightforward).

The thing is that I CAN use it on my older Artix installation, but not on a NEW one which I installed today on another machine:

When I select some command from history and press Enter - nothing happens and I return to the console like the command was executed (but it wasn't actually).

The configs are the same everywhere.

I just cannot figure it out why such a tiny and easy program doesn't work on a newer installation.

Any ideas?

TIA

P.S. I've tried even other methods like unpacking Debian and Void linux packages. All in vain. The same situation.

======

SOLVED:

Sorry, it was a kernel issue. I'm using an older one on the first machine, so the program worked okay.

But somewhere in kernels 6.2.x and higher some new feature was introduced. I had to enable this:

dev.tty.legacy_tiocsti = 1

in /usr/lib/sysctl.d/

Now it's fine.
Title: Re: HSTR doesn't work on a new installation
Post by: RedGreen925 on 01 March 2025, 07:50:33
Normally do not necro post but I just had to say thanks for the solution that worked for me too that I found in a google search on this problem you had as I did. Without the sysctl setting enabled the hstr did not work for me as user it only echoed the selection to standard out in the shell a real PITA, strangely enough it did as root though. Oh and now I notice the edit date posted on my birthday two years ago a late present for me, whoopie!!!