The editor suggests, as fish does, the newest cd line of the history whose
directory exists, else the directories or files that start with the word.
prevd, nextd and cdh move in the directory history, and so do Alt-Left and
Alt-Right on an empty line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Depends on bjoterm 0.1.1: a prompt may contain line breaks.
- tests/extension.bjo: a change, then reload, in the same bjosh runs the
new code. Bjolang's (std plugin) now loads a rebuilt module anew.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bjoterm is now a git dependency, at version 0.1.0 or later, pinned in
bjo.lock. So a clone of bjosh builds on any computer that has Bjolang.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A package of user commands in $XDG_CONFIG_HOME/bjosh/commands. Its
module commands.bjo exports bjosh-extension: value commands, shell
commands and a prompt function.
- (bjosh api): the types and functions a package imports.
- (bjosh user): builds the package when it is stale, and loads it with
(std plugin) at each start. `reload` builds and loads it again.
- bjosh --new-commands writes a package with an example.
- No Native AOT, because it cannot load modules. bin/bjosh starts
src/main.exe.
- tests/extension.bjo.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- (bjosh syntax): a part of POSIX sh, parsed with (text
parser-combinators). Syntax that is not supported raises an error that
names it.
- (bjosh expand): variables, ~ and globs. Values are not split.
- (bjosh exec): pipes as (std run) jobs, && || ; &, redirections, and
NAME=value through env.
- (bjosh shell) and (bjosh builtins): the job table and cd, pwd, exit,
export, unset, jobs, fg, bg, kill, type, help, history.
- (bjosh editor): Enter waits for open quotes and trailing operators;
completion of commands and files.
- -c LINE, FILE, and stdin. A Native AOT build too.
- Tests: the parser, expansion, the editor, lines through -c, and job
control under script.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A shell: POSIX command lines, job control, and built-in commands in
Bjolang that pass values. plan.org has the decisions and the phases.
It depends on bjoterm, on disk at ../bjoterm.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>