Skip to content
FreeCLIPublic

About

Plus Shell (plush), a D language structured shell runtime. Default oso syntax mode, with nu and bash compatibility modes.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Plus Shell (plush)

Status

Interactive line editor with the lang command (alias L). The parser is a provisional NS-15 word split: bare words, literal double quotes, and -name value passed through. nu and bash syntax modes are not implemented yet. External programs are started with the parsed words. This shell does not emulate another shell’s builtins.

Build

dub test --compiler=ldc2
dub build --compiler=ldc2
dub run -- -help

The locale table is the registry package langcodes (~>0.1.0). Do not commit a path dependency. A local dub add-override is only for development, and CI rejects it.

Run

The command is plush. Releases up to v0.2.1 were published as open-shell (same shell, old name, old config folder). Version 0.3.0 renamed the package, the command, the release files, the config folder and the Terminal fragment. The current release is v0.3.1; it fixes the Windows Terminal fragment install script. The DUB package is plush (0.3.0 and 0.3.1). The shim package is freecli.plush, with commands plush and osh.

A bare plush starts the line editor. -help prints help and does not start the shell. -h and --help do the same. --help is the compatibility trigger; other repeated dashes are rejected. -help/interact opens the help viewer. Docs teach that long form. Ctrl+C clears the line. Ctrl+D on an empty line, or exit, leaves.

The line above the prompt is a globe and the active input language code. When the console cannot draw the globe (conhost, or a terminal that is not UTF-8), the code is shown in brackets. Click that line where the terminal sends mouse reports. The text you were typing is restored afterward. Where the mouse is not available, type lang.

Input language

  • lang lists regions.

  • lang africa lists that region.

  • lang es-MX, lang es_mx, and lang esmx switch.

  • lang en lists regional variants instead of guessing.

  • Help: lang -help and lang -help/interact. help/interact lang opens the same viewer.

  • The choice is stored in the user config directory, not in this repo. A config left by open-shell is copied to the plush folder once on first start.

Icon

  • assets/plush.svg is the tiled mark (Plus Shell).

  • assets/plush.ico is embedded in the Windows executable.

  • PNG sizes are under assets/png/.

  • Isolated drawings are under assets/icons/.

  • A Windows Terminal fragment is packaging/windows-terminal/plush.json. Its icon is plush.ico beside the JSON. assets/plush.ico is the source of truth; tools/sync-fragment-icon.ps1 copies it into that folder. Install both files with tools/install-windows-terminal-fragment.ps1 into %LOCALAPPDATA%/Microsoft/Windows Terminal/Fragments/FreeCLI/ (v0.3.1 fixes a bug that could exit before that copy). The script also removes an old Fragments/OpenShellOrg/ copy left by releases through v0.2.1.

Syntax modes

Typography

Default cell font: Consolas (system face; override allowed). See docs/TYPOGRAPHY.adoc.

Changelog

License

MIT. See LICENSE.

About

Plus Shell (plush), a D language structured shell runtime. Default oso syntax mode, with nu and bash compatibility modes.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages