/**********************************************\
|                                              |
|     luash - a Lua Shell for your console     |
|     (this is free software, see COPYING)     |
|                                              |
\**********************************************/

luash is a shell written in C++/Lua that lets you run commands in Lua.
It is based on readline for command input and Lua to run commands.

Your normal shell environment is merged with the Lua environment of the running Lua VM.
All programs can be run by just typing their names (that's Lua's magic).
You can just run 'ls' with:
$ ls

you can change almost anything to suite your needs using Lua code:
[*] getPrompt() is the function that returns the prompt to print on screen
[*] luashellcolor is a boolean that enable/disable prompt color with default getPrompt() function
[*] _auto_complete(key) is the function that controls auto completion (just return a table of string)
[*] runner(cmd) creates a kind of function used to run the command cmd and either print its standard
    output on screen or grab it into a string
[*] run(cmd) runs the command cmd and returns its standard output (which is not printed on screen)

----- config file -----

luash reads 2 config files at startup in following order:
/etc/luashellrc
~/.luashellrc

Both should be Lua code. If the shell crashes, it is automatically reloaded.
If it keeps crashing it is reloaded in safe mode (config files are ignored) so you
can safely set it as your default shell.

----- Installation -----

You need Lua to be installed on your system as well as Lua Filesystem.
Once dependencies are met, just run make to build luash:
$ make

then make install to install it:
$ make install

by default it is installed in /usr/local/bin, if you want to change install prefix from /usr/local
to something else just run:
$ make install PREFIX="something else"

to uninstall just run make uninstall with the same PREFIX:
$ make uninstall PREFIX=/usr
