HSTR 3.3 - Minor fix release2026-11-04
This minor HSTR release brings:
- Fixed truncation of bash history file by HSTR configuration
(--show-configuration) - history size (bash HISTSIZE and HISTFILESIZE,
zsh HISTSIZE and SAVEHIST) is only increased, never decreased and
unlimited sizes are kept, also for very large values and in UTF-8
locales - thanks to @awcator
- Fixed HSTR bash configuration with set -u (nounset) - unset
HISTFILESIZE and PROMPT_COMMAND no longer cause errors
- Fixed TIOCSTI detection diagnostics printed to stdout - they were
appended to ~/.bashrc by --show-configuration run without a terminal
(scripts, containers) - and leaked /dev/tty file descriptor
- Fixed man page rendering of the bash and zsh configuration (missing
hstrnotiocsti function body and Ctrl-r key bindings)
- Added HSTR_HISTFILE environment variable with history file to be used
by HSTR instead of HISTFILE e.g. global history shared by shells with
per-shell history files - thanks to @xobes
- Fixed leading space in case of empty HSTR prompt
(indent kept for non-empty prompts) - thanks to @roshal
- Fixed favorites corruption and crash on empty selection
- Fixed out of bounds selection access with prompt at the bottom
(PgUp/PgDn, regexp highlighting) and stale cursor after backspace
- Fixed duplicate favorites when adding an existing favorite
- Fixed memory leak and misleading deletion count on favorite removal
- Fixed memory leak on deletion of a command from history
- Fixed search pattern buffer overflow on very wide terminals and garbage
characters in the pattern after pressing unhandled special keys
- Fixed prompt and search pattern with multibyte/wide characters (e.g. "❯ "
in HSTR_PROMPT, UTF-8 or CJK pattern): cursor position, backspace,
elided history rows and highlighting of matches - thanks to
Lukáš Brabec (@lbrabec)
- Fixed memory corruption on backspace and history row eliding on very
narrow terminals
- Fixed Zsh history with non-ASCII characters (e.g. "čeština") which was
shown, searched and inserted to the prompt in Zsh metafied encoding,
and deletion of Zsh history entries with long command duration
- Added Stonking Stingray Ubuntu version support at Launchpad.
- Added GitHub actions workflows to build tarball, .deb, and .rpm distros.
- Fixed build on Linux distributions without ncursesw/curses.h header
(e.g. Arch Linux) - thanks to Kipras Melnikovas (@kiprasmel)
Big up to @awcator @xobes @lbrabec @kipresmel @Smoothieewastaken and @roshal for their contributions!
---
Full Changelog: https://github.com/dvorka/hstr/compare/v3.2...v3.3
* enh(TUI): 🌟 remove leading space in the HSTR promt row when the prompt is empty/"" by @roshal in https://github.com/dvorka/hstr/pull/567
* fix(favorites): 🐞 fixing NPE crash on favorites manipulation #470 by @dvorka in https://github.com/dvorka/hstr/pull/553
* fix(build): 🐞 fixing build on Linux distributions w/o ncursesw/cursesh (e.g. Arch Linux) #345 by @dvorka in https://github.com/dvorka/hstr/pull/568
feat(history): ✨ adding HSTRHISTFILE which enables per-shell history file #547 by @dvorka in https://github.com/dvorka/hstr/pull/569
* fix(history): 🐞 fixing user's Bash/Zsh history truncation in case it is set above HSTR's BP values #563 by @dvorka in https://github.com/dvorka/hstr/pull/571
* fixed typos from doc\USER-DOCUMENTATION.md by @Smoothieewastaken in https://github.com/dvorka/hstr/pull/502
* fix(wide): 🐞 fixing wide characters handling end to end #533 by @dvorka in https://github.com/dvorka/hstr/pull/570
Download HSTR
HSTR 3.2 - ioctl/TIOCSTI config2026-02-06
This minor minor release brings ioctl/TIOCSTI configuration enforcement, SIGQUIT handling to cleanup terminal state on quit, and number of :lady_beetle: fixes.
Kudos to Augment Code for providing the augmentcode[bot] to help with PR reviews. It made several great catches - which were missed by me and other tools, making this release more stable. Big up to @jakedane @NotAShelf @regob and @happylynx for their contributions!
---
Full Changelog: https://github.com/dvorka/hstr/compare/3.1...v3.2
* Update manpage and append -- to hstr calls by @jakedane in https://github.com/dvorka/hstr/pull/491
* update Nix installation instructions by @NotAShelf in https://github.com/dvorka/hstr/pull/512
* Fix passing arguments in hstrnotiocsti by @regob in https://github.com/dvorka/hstr/pull/527
* Bash tab completion fix by @happylynx in https://github.com/dvorka/hstr/pull/545
* feat(tiocsti): ✨ adding interactive "TIOCSTI not configured" warning #548 by @dvorka in https://github.com/dvorka/hstr/pull/549
bug(views): fixing buffer overflow vulnerability in HSTR that caused crashes when pressing Ctrl+/ - on wide terminals (>2048 characters), fixed CMDLINELNG caused a buffer overflow, corrupting memory and crashing the application when wgetch() tried to read input by @dvorka in https://github.com/dvorka/hstr/pull/552
* fix(search): 🐛 fixing undesired " on insert of the pattern w/ whitespace by @dvorka in https://github.com/dvorka/hstr/pull/558
* [Release] HSTR 3.2.0 by @dvorka in https://github.com/dvorka/hstr/pull/557
Download HSTR
HSTR 3.1 - Minor fix release2023-04-18
This minor minor release brings fix of Bash function :lady_beetle: which replaces TIOCSTI syscall.
Kudos to @jakedane for finding the bug in 3.0.0 and help with repro and fix.
Download HSTR
HSTR 3.0 - Syscall ioctl/TIOCSTI no longer required2023-04-15
This major release adds ability of HSTR to work on operating systems and Linux kernels without ioctl/TIOCSTI syscall support (https://github.com/dvorka/hstr/issues/478). Please make sure to add/update your Bash/Zsh configuration in case you use HSTR on such systems.
Download HSTR
HSTR 2.6 - Stabilization Release2022-12-11
New HSTR release brings several memory leak and overflow fixes, MacPorts and Debian documentation, Snap script fix and GitHub Actions workflow.
Kudos to @juppytt, @herbygillot, @ihsinme and others for contributions!
Download HSTR
HSTR 2.5 - Minor fix release2021-12-13
This minor minor release brings build stabilization by fix of mvprintw() compilation :lady_beetle:
Download HSTR
HSTR 2.4 - Insert command in command prompt2021-12-08
New HSTR release brings parameter which can be used to insert commands in terminal prompt:
``
$ hstr --insert-in-terminal="ls -hal"
$ ls -hal|
`
It is useful whenever you need to:
construct complex command using a shell script to modify current shell** with source and check and/or edit it prior running:
`
$ hstr --insert-in-terminal="my-script-which-constructs-command.sh"
$ export CONDAINSTALLDIR=/opt/conda/acme && unset PYTHONPATH && source ../.rcconda && conda activate envprj|
`
insert command to terminal prompt directly from a shell script** to modify current shell:
`
$ cat my-script-which-inserts-command.sh
...
hstr --insert-in-terminal="${CMD} -vvv ${REQUIREDPARAMS} ${OPTIONALPARAMS} ${2}"
...
$ ./my-script-which-inserts-command.sh
ACME builder:
clean ... DONE
build ... DONE
Ready to test product:
$ pytest -vvv -n 8 --use-fixture-cache tests/featuretest.py::testcase|
`
Overall this feature aims to help you to be faster and get more out of your shell scripts.
Enjoy!
---
|` in the examples above indicates cursor position
Download HSTR
HSTR 2.3 - Extended zsh history2020-11-19
hstr-zsh
This HSTR release brings zsh extended history fixes contributed by @thibaultcha and various minor fixes.
Download HSTR
HSTR 2.2 - Help visibility and control2019-12-21
This HSTR release brings ability to toggle help lines visibility and location (contributed by @bibermann), zsh support improvements and major code review/fixes of memory leaks.
Download HSTR
HSTR 2.1 - Improved zsh support2019-12-09
This minor release brings improved zsh support and important fixes.
Download HSTR