Hilbish v0.3.0
Hilbish v0.3!!! 35 commits from 0.2!! A pretty big release.
fs.cd
now throws an exception instead of silently failing, which you should handle withpcall
- Enhancements to the
cd
command:- With no arguments will move to
$HOME
- Now throws a
cd
hook, with a single hook arg being the arguments to the command - Now works for directories with spaces
- With no arguments will move to
- Lua input now throws a success hook if it succeeded
- Command history is now saved to
~/.hilbish-history
- Globals defined in Lua that are strings will be defined as an env variable (#16)
- BREAKING Change: Removed Bait hooks
command.success
andcommand.fail
, there is now the single hookcommand.exit
, with a single argument passed which the exit code of the command. Use this to determine if a command has failed or not (failure is code != 0) - BREAKING Change: The Ansikit function
text
has been renamed toformat
. - Input ending with
\
will now go to a newline - Bugfixes and code changes:
- Input is now trimmed
- Internals are slightly cleaned up and codebase split up
- Added a
multiprompt
function to change the prompt of the multiline/continuation/newline prompt exit
command is now written in Lua- Hilbish will now fall back to a builtin minimal config if the user's config has syntax errors on loading
- Commands defined in Lua now report the error to the user cleanly instead of panicking if it has occured
_ver
variable to get Hilbish's version from Lua