Profiles

In the beginning (of bashish) bashish traversed through a bunch of modules to provide all nifty features, this approach was beatiful and worked well until the DR5 got released when Your's Truly started to add a massive amount of features which made bashish dog slow.

A radical change was needed to execute as little code and using as little I/O as possible:

``Dead'' code snippets were glued together to form a ``profile'', a big function which is specificly compiled for the shell/terminal combination in use. The profile function in use is named ``brefresh()''. The ``Dead'' code snippets are called ``moduledata'' and resides in the $BASHISHDIR/modules/moduledata/ directory. To create these profiles, code from $BASHISHDIR/modules/sh/profile/ and $BASHISHDIR/modules/sh/conf/profile.conf is used. profile.conf defines the structure of the profile and the modules in profile/ parses the terminal and shell.



Thomas Eriksson 2004-06-23