#shell #terminal #customizable #recursion #command #aliasing #aliases

app zula

a minimal and highly customizable terminal shell

12 releases (7 stable)

2.0.3 Aug 24, 2023
2.0.2 Aug 23, 2023
1.1.0 Aug 22, 2023
0.1.1 Aug 21, 2023
0.0.10 Aug 21, 2023

#487 in Configuration

Download history 16/week @ 2024-09-21 3/week @ 2024-09-28

67 downloads per month

MIT/Apache

15KB
339 lines

zula - Yet Another Shell

zula is a minimal and extendable terminal shell. It aims to streamline convenience tools for common shell interactions, via simple configuration tools and a plugin system.

Features

Aliases

zula features recursive aliasing. Aliases can expand into other aliases, which expand into more aliases...

Commands can be escaped with !cmd if you wish to use a program that shares the name of an alias. Note that aliases only apply to the first command parameter, they will not expand when used as arguments.

Binds

zula allows you to bind any command to run when pressing Alt + <key>.

Pipes

Currently, the only supported operator in zula is &&, which will run each command sequentially and stop if one errors.

Plugins

zula supports a plugin system. Place your .so files in $ZULA_CONFIG/plugins and run zula cfg to check what is loaded. See the sister crate zula-core for more information.

Configuration

zulas main configuration file is found in $ZULA_CONFIG/.zularc. If this enviroment variable is not set, it defaults to $XDG_CONFIG_HOME/zula. It currently supports:

  • #alias - set an alias word to be expanded into a command.
#alias vi nvim .
  • #bind - bind a command to be triggered when pressing Alt + <key>.
#bind v vi

.zularc is parsed line-by-line, if a line is not a valid command it will simply be ignored.

Todos

Here is a list of features I'm actively/plan to work on.

  • plugin system
  • simple scripts
  • more command piping options
  • applets once the plugin system is functional

Missing

Here are some things that you may expect from a mature shell that zula is missing and may or may not be planned for the future.

  • auto suggestions
  • bash-esque scripting

Dependencies

~0.3–10MB
~50K SLoC