Skip to content

Releases: Rosettea/Hilbish

Hilbish v0.3.0

05 Apr 22:53
Compare
Choose a tag to compare

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

Hilbish v0.2.0

31 Mar 00:08
Compare
Choose a tag to compare

Hilbish v0.2!!!

  • Hooks (events) are the new and main thing in v0.2, you can now listen for hooks or cast out (emit) custom ones, via the bait package
  • Prompt has been changed to have printf-like verbs to format. This makes it easier on the user's side to configure, and doesn't require hooks to change it for things like current directory.
  • ^^ to refer to the previous command.
    It's for the lazy hands like me, so I can do something like ENV=VAR ^^
  • Way more (more like any) comments in the core code.
  • Default prompt's changed and the triangle changes color based on if command failed or not.

Hilbish v0.1.2

24 Mar 20:53
Compare
Choose a tag to compare
  • Add Lua input to history

Hilbish v0.1.1

24 Mar 19:35
Compare
Choose a tag to compare
  • Go to new line if sh input is incomplete
> for i in {1..5}

This input for example will prompt for more input to complete:

Hilbish v0.1.0

24 Mar 19:33
Compare
Choose a tag to compare

In the works for about 2 days for pretty basic things because I was hopping between readline libraries eventually going full circle to the original readline lib that was being used.

  • Tab complete files
  • Makefile installation
  • sh support

Hilbish v0.0.12

21 Mar 16:58
Compare
Choose a tag to compare
Hilbish v0.0.12 Pre-release
Pre-release

First fully working release of Hilbish.