Library for the Q programming language.
-
Clone this repository
git clone <link>
-
Create the QLIB and QEXE environment variables. Note that you should replace USER and PLATFORM (w64, l64, etc.) as appropriate.
# Set QLIB and QEXE in a start-up script # For example, in bash $ echo 'export QLIB=${HOME}/repos/qlib' >> ${HOME}/.bashrc $ echo 'export QEXE=${QHOME}/PLATFORM/q' >> ${HOME}/.bashrc # Source the script to define the variables in your current session $ source ~/.bashrc
setx QLIB "$env:USERPROFILE\repos\qlib" setx QEXE "$env:QHOME\PLATFORM\q"
-
Automate loading the q package manager when a q session is started.
-
Create a
q.q
file inQHOME
(if not previously created).# For example, in bash touch $QHOME/q.q
echo. > %QHOME%\q.q
-
Add the following lines to your
q.q
file:.priv.qlib:hsym `${$["~"=first x;getenv[`HOME],1_x;x]} getenv`QLIB; {if[not ()~key f:` sv .priv.qlib,`$"src/pkg.q"; system "l ",1_string f]}[];
-