Skip to content

Hilbish v0.3.0

Compare
Choose a tag to compare
@TorchedSammy TorchedSammy released this 05 Apr 22:53
· 1014 commits to master since this release

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 with pcall
  • 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
  • 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 and command.fail, there is now the single hook command.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 to format.
  • 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