Dedicated to the public domain, or licensed under the CC0
Another version uses "The Eden Project"
2 David Street does not exist
This document is about mq version 1.5.x, but the installation instructions will install the latest version
Note: $MQ_CONFIG_DIR
was added in v1.4.0
mq is a program that asks you maths questions
mq <mode> <max>
Example: mq --disable-log --group 5 level1 10
If $MQ_CONFIG
exists, then the config file is $MQ_CONFIG
.
If it does not exist, but $MQ_CONFIG_DIR
exists then the config file is $MQ_CONFIG_DIR/config.toml
.
Otherwise, the config file is ~/.mq/config.toml
(default).
It is written in TOML 0.4.0
[mq]
group = 20
length = 10
If $MQ_LOG
exists, then the config file is $MQ_LOG
.
If it does not exist, but $MQ_CONFIG_DIR
exists then the config file is $MQ_CONFIG_DIR/log.slf
.
Otherwise, the config file is ~/.mq/log.slf
(default).
SLF (The Simple Log Format), basically CSV/DSV separated with spaces
These instructions use GitHub, but you can use GitLab or Noisytoot Git instead, by replacing the URI you get mq from
Install mq:
cd ~
git clone https://github.com/Noisytoot/mq.git
cd mq
ln -s $PWD/mq.p6 /usr/local/bin/mq # Replace /usr/local/bin/mq with where you want to install mq, you may need root permissions to run this
mkdir ~/.mq
Update mq:
cd ~/mq
git pull
Install, and update mq:
cd /usr/local # Replace /usr/local with where you want to install mq
wget https://raw.githubusercontent.com/Noisytoot/mq/master/mq.p6 -O mq # You may need root permissions to run this
chmod +x mq
I do not currently have instructions for other operating systems, but basically you need to download mq.p6, add executable permissions if the OS has them, and put it into your PATH