// sample init file for the Q interpreter // copy this to .qinitrc in your home directory and edit as needed // This file is part of the Q programming system. // // The Q programming system is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2, or (at your option) // any later version. // // The Q programming system is distributed in the hope that it will be // useful, but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // common constants //def inf = 1e999 //def e = exp 1.0 //def pi = 4.0*atan 1.0 //def i = (0,1) // set your preferred defaults here //path .:~/q:/usr/local/share/q/lib:/usr/local/lib/q //fix 2 //stacksize 1024000 //memsize 4096000 //break on //debug pathnames=y detail=all maxchars=80 // alternative command prompts //prompt "\n==> " // the default prompt "\n\\M>> " // Hugs-like prompt (\\M = basename of script) // experiment with colors (requires an ANSI terminal or xterm) //prompt "\n\27[34m\\M\27[0m>> " //prompt "\n\27[31mQ Version \\v (\\s) \27[34m\\w\27[0m\n\\M>> " // read variable definitions from .q_vars file (see also qexitrc) load