Mercurial > hg > octave-lyh
changeset 5316:aaa6df7aa13a
[project @ 2005-04-28 15:01:33 by jwe]
author | jwe |
---|---|
date | Thu, 28 Apr 2005 15:01:34 +0000 |
parents | f9aff9291d94 |
children | 1c5fe2690d2c |
files | scripts/startup/Makefile.in scripts/startup/inputrc scripts/startup/local-rcfile scripts/startup/main-rcfile scripts/startup/octaverc |
diffstat | 5 files changed, 44 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/startup/Makefile.in +++ b/scripts/startup/Makefile.in @@ -20,7 +20,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ -SOURCES = octaverc # *.m +SOURCES = main-rcfile local-rcfile inputrc # *.m DISTFILES = Makefile.in $(SOURCES) @@ -34,14 +34,19 @@ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) if test -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/octaverc; then true; \ else \ - $(INSTALL_DATA) $(srcdir)/octaverc \ + $(INSTALL_DATA) $(srcdir)/main-rcfile \ $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/octaverc; \ fi + if test -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/inputrc; then true; \ + else \ + $(INSTALL_DATA) $(srcdir)/inputrc \ + $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/inputrc; \ + fi $(top_srcdir)/mkinstalldirs $(DESTDIR)$(localfcnfiledir)/$(script_sub_dir) if test -f $(DESTDIR)$(localfcnfiledir)/$(script_sub_dir)/octaverc; \ then true; \ else \ - $(INSTALL_DATA) $(srcdir)/octaverc \ + $(INSTALL_DATA) $(srcdir)/local-rcfile \ $(DESTDIR)$(localfcnfiledir)/$(script_sub_dir)/octaverc; \ fi # for f in $(FCN_FILES_NO_DIR); do \
new file mode 100644 --- /dev/null +++ b/scripts/startup/inputrc @@ -0,0 +1,21 @@ +## This file configures the behavior of line-input editing for all +## Octave users when Octave is configured to use GNU Readline library +## for input-line editing. + +## history-search-backward: +## +## Search backward through the history for the string of characters +## between the start of the current line and the point. This is a +## non-incremental search. Bound to "\e[A", the ANSI escape +## sequence for the UP arrow. + +"\e[A": history-search-backward + +## history-search-forward: +## +## Search forward through the history for the string of characters +## between the start of the current line and the point. This is a +## non-incremental search. Bound to "\e[B", the ANSI escape +## sequence for the DOWN arrow. + +"\e[B": history-search-forward
new file mode 100644 --- /dev/null +++ b/scripts/startup/local-rcfile @@ -0,0 +1,4 @@ +## System-wide startup file for Octave. +## +## This file should contain any commands that should be executed each +## time Octave starts for every user at this site.
new file mode 100644 --- /dev/null +++ b/scripts/startup/main-rcfile @@ -0,0 +1,11 @@ +## System-wide startup file for Octave. +## +## This file should contain any 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. + +read_readline_init_file (sprintf ("%s%s%s", + octave_config_info ("startupfiledir"), + filesep, "inputrc"));