{ "name": "hstr", "version": "3.2", "summary": "hstr: searches the shell's command history as you type and puts the chosen command on the command line (bash and zsh)", "category": "tool", "license": "Apache-2.0", "homepage": "https://github.com/dvorka/hstr", "source": { "url": "https://github.com/dvorka/hstr/releases/download/v3.2/hstr-3.2.0-tarball.tgz", "sha256": "abf0a8625545b2022d62bf0d1c576e3cc783c4ea7cc2ae2843c518743f77f4c9" }, "watch": {"kind": "github-release", "repo": "dvorka/hstr", "tag_regex": "^v([0-9]+\\.[0-9]+)$", "source": "https://github.com/dvorka/hstr/releases/download/v{version}/hstr-{version}.0-tarball.tgz"}, "deps": [ "ncurses", "readline" ], "env_packages": [], "static": true, "nss": true, "check": "bin/hstr --version 2>/dev/null | has 'hstr version \"3.2.0\"' && t=$(mktemp -d) && printf 'ls -la\\ngit status\\nbvs-hstr deploy one\\ncd /tmp\\nbvs-hstr deploy two\\n' > \"$t/hist\" && HOME=$t HISTFILE=$t/hist bin/hstr -n bvs-hstr > \"$t/n\" 2>/dev/null && [ \"$(grep -o 'bvs-hstr deploy [a-z]*' \"$t/n\" | tr '\\n' ,)\" = 'bvs-hstr deploy two,bvs-hstr deploy one,' ] && HOME=$t HISTFILE=$t/hist tui_screen 3 bin/hstr > \"$t/screen\" && has 'bvs-hstr deploy one' < \"$t/screen\" && bin/hstr --show-bash-configuration 2>/dev/null | has 'alias hh=hstr' && echo 'hstr 3.2: the two matches of a history file printed newest first, the history drawn in a pseudo-terminal, its bash configuration'" }