4 Configuration
Maxwell edited this page 2024-07-29 13:16:53 +10:00

Configuration

Make Mash your own with a configuration file.

Overview

Mash uses an easy-ish to read syntax for configuration. An example line would look something like this:

thingToConfigure:confOptionOne;confOptionTwo;confOptionThree;

thingToConfigure stands for the option inside of Mash you are configuring, whereas all the other confOptions are completely customisable, depending on what you might use it for.

Start your line of config with the thing you're configuring, add a colon seperating (without a space), seperate any suboptions with semicolons, and end each line with a comma. Start a new line with your next config option. Note that you can use spaces in your configuration without messing anything up, and without the need for quotation marks.

Mash will look for a config file first at .config/mash/mash.conf, then at /etc/mash/mash.conf. Using the Mash install script, /etc/mash/mash.conf should be created.

Things to Configure

This will be updated as more options are avaliable.

  • MOTD

Overview: Change the message on startup

Syntax: motd:(your startup message here),

Default: motd:Welcome to Mash!,

  • Mash Path

Overview: Change where Mash looks for programs

Syntax: mashPath:/path/to/dir;/path/to/dir,

Default: mashPath:/bin;/usr/bin;/usr/local/bin;/sbin;/usr/sbin,

  • Colours

Overview: Change some colours inside Mash. Five colours are required.

Syntax: colour:colour1;colour2;colour3;colour4;colour5,

Default: colour:green;white;white;blue;white,

Valid Options: white, blue, green, yellow, pink, red, lblue