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.
Moved the script to dataDir, this will make sure the script is removed
after the package is deactivated.
Users may override the handle by placing appropriate files in
/etc/profile.d
- Properly escaped dollar signs
- Respects command_not_found error code
- Added fallback to avoid deadlock in case command_not_found was
uninstalled
Solves #2760