* remove completions for other operating systems. commands borrowed from
the Arch Linux recipe
* disable completions that need Haiku support to function properly
* quick path fixes for hosts, known_hosts, and resolv.conf files
existing users can 'rm -r /system/settings/zsh/functions' before updating
or they will have stale files left around from the previous package
Also:
- Fixed tab-completion when using libedit.
- Avoid mentions of "~/.xonshrc". Point to, and use,
~/config/settings/xonsh/xonchrc instead.
- Added "pygments" as a required package.
It is listed as an optional dependency, but "xonfig web"
(a command user will likely try as it is advertized at
start-up) fails without it.
- Silenced a startup error message, as it is known to be a
libedit vs readline issue, and doesn't seems to affect
normal usage.
Will now warn against using libedit, and recommend installing
the "gnureadline" Python module instead (currently, we don't
have it on HaikuPorts).
- require prompt_toolkit now that we have it. It provides
a much more richer experience out of the box.
Notice: people updating from 2.x versions will need to update their
bash settings on the "~/config/settings/profile" according to the
instructions given by `hstr -B`.
Users of zsh, should follow `hstr -Z` instead.
Create a default zshrc file that sets up the prompt to behave the same
as the bash one set by Haiku. There was an attempt to patch the prompt
in zprofile already (after sourcing /etc/profile), but the prompt is now
too complex for the simple substitutions to work.
Avoids the problem reported in https://dev.haiku-os.org/ticket/17652
* Use the proper configuration instructions for bash in Haiku.
Big thanks to madmax for finding the issue!
* Reworked the patch about the history files locations.
* Removed the TEST() section, as "make check" had "nothing to do".
* Removed "-I m4" from aclocal, as it was not necessary.
* Removed the "hh" symlink to "hstr". The user can create an alias.
The issue was that, on platforms that lack the TIOCSTI ioctl, a
workaround is needed to be able to insert text on the shell's command
line. The workaround relies on defining a shell function,
and keybinding said function so it gets handled by readline.
Now, following the "hstr --show-configuration" instructions will
result in C-r working as expected, at least for bash.
As it still won't fully work under zsh (for the lack of a similar
workaround, but implemented as a zsh function)... removed the ZSH
mention from the package description to avoid false expectations.
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.