Mercurial > octave
view scripts/startup/version-rcfile @ 21624:cf227735d5fd
pkg: remove support for autoload (automatically loading package at start).
* pkg.m, pkg/private/install.m, pkg/private/load_packages.m,
pkg/private/rebuild.m: remove support for automatically loading packages.
Having octave itself and the package manager automatically load packages
is a bad idea. If a user wants to load a package at startup then it should
specify it on its octaverc file. This can also be done on the system-wide
octaverc file. This also simplifies pkg (this patch only removes code).
* startup/version-rcfile: do not run 'pkg ("load", "auto")' at startup.
* doc/interpreter/package.txi: remove mention of package autoload from the
manual.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Sun, 10 Apr 2016 23:00:07 +0100 |
parents | 1da428cbf401 |
children | 51b7d8456ce3 |
line wrap: on
line source
## System-wide startup file for Octave. ## ## If the environment variable OCTAVE_VERSION_INITFILE is set when Octave ## starts, then that file is executed instead of this file. ## ## This file contains commands that should be executed each time Octave starts ## for every user at this site. ## Configure readline using the file inputrc in the Octave startup directory. readline_read_init_file (sprintf ("%s%s%s", __octave_config_info__ ("startupfiledir"), filesep, "inputrc")); ## Configure LESS pager if present if (strcmp (PAGER (), "less") && isempty (getenv ("LESS"))) PAGER_FLAGS ('-e -X -P"-- less ?pB(%pB\\%):--. (f)orward, (b)ack, (q)uit$"'); endif ## For Matlab compatibility, run startup.m when starting Octave. if (exist ("startup", "file")) startup; # No arg list here since startup might be a script. endif ## For Matlab compatibility, schedule finish.m to run when exiting Octave. atexit ("__finish__");