|EDITRC(5)||File Formats Manual||EDITRC(5)|
editrcfile defines various settings to be used by the editline(3) library.
The format of each line is:
[prog:]command [arg ...]
prog may also be a regex(3) style regular expression, in which case command will be executed for any program that matches the regular expression.
If prog is absent, command is executed for all programs.
editlinelibrary has some builtin commands, which affect the way that the line editing and history functions operate. These are based on similar named builtins present in the tcsh(1) shell.
The following builtin commands are available:
-aeklrsv] [key [command]]
- Without options and arguments, list all bound keys and macros, and the
editor command or input string to which each one is bound. If only
key is supplied, show the binding for that key or
macro. If key command is supplied, bind the editor
command to that key or macro.
The options are as follows:
- List or change key bindings in the vi(1) mode alternate (command mode) key map.
- Bind all keys to the standard GNU Emacs-like bindings.
- key is interpreted as a symbolic arrow key name, which may be one of ‘up’, ‘down’, ‘left’ or ‘right’.
- List all editor commands and a short description of each.
- Remove the binding of the key or macro key.
- Define a keyboard macro rather than a key binding or command macro: command is taken as a literal string and appended to the input queue whenever key is typed. Bound keys and macros in command are themselves reinterpreted, and this continues for ten levels of interpretation.
- Bind all keys to the standard vi(1)-like bindings.
The editline(7) manual documents all editor commands and contains more information about macros and the input queue.
key and command can contain control characters of the form ‘^ character’ (e.g. ‘^A’), and the following backslashed escape sequences:
‘\’ nullifies the special meaning of the following character, if it has any, notably ‘\’ and ‘^’.
-sv] arg ...
- Exercise terminal capabilities given in arg .... If
arg is ‘baud’, ‘cols’,
‘lines’, ‘rows’, ‘meta’, or
‘tabs’, the value of that capability is printed, with
“yes” or “no” indicating that the terminal
does or does not have that capability.
-sreturns an empty string for non-existent capabilities, rather than causing an error.
-vcauses messages to be verbose.
- Enable or disable the
editlinefunctionality in a program.
historylist | size
- The list command lists all entries in the history.
The size command sets the history size to
nentries. The unique command controls if history should keep duplicate entries. If
nis non zero, only keep unique history entries. If
nis zero, then keep all entries (the default).
- Set the terminal capability cap to val, as defined in termcap(5). No sanity checking is done.
-x] [+mode] [-mode] [mode] [char=c]
- Control which tty modes that
editrcwon't allow the user to change.
settyto act on the ‘edit’, ‘quote’ or ‘execute’ set of tty modes respectively; defaulting to
Without other arguments,
settylists the modes in the chosen set which are fixed on (‘+mode’) or off (‘-mode’).
-alists all tty modes in the chosen set regardless of the setting. With +mode, -mode or mode, fixes mode on or off or removes control of mode in the chosen set.
Settycan also be used to set tty characters to particular values using char=value. If value is empty then the character is set to
- List the values of all the terminal capabilities (see termcap(5)).
- Last resort, if no other file is specified, user configuration file for the editline(3) library.
SEE ALSO¶editline(3), regex(3), termcap(5), editline(7)
editlinelibrary was written by Christos Zoulas, and this manual was written by Luke Mewburn, with some sections inspired by tcsh(1).
|May 22, 2016||Linux 4.19.0-10-amd64|