jupyterlite / cockle

In-browser bash-like shell implemented in TypeScript.
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Add support for aliases #21

Closed ianthomas23 closed 3 months ago

ianthomas23 commented 3 months ago

Add initial support for aliases. It is not yet possible to set a new alias from a Shell as this will require parsing of quote-delimited strings, but there are hard-coded aliases in the Aliases constructor. The primary motivation here is to set some default use of colour in various commands for the upcoming coloured output PR.

The aliases work when running commands and for tab completion, and the alias command writes the current aliases to stdout.