SENSIBLE-EDITOR
Section: User Commands (1)
Updated: 14 Nov 2018
Index
Return to Main Contents
NAME
sensible-editor - sensible editing
SYNOPSIS
sensible-editor [OPTIONS...]
DESCRIPTION
sensible-editor makes sensible decisions on which editor to call.
Programs in Debian can use this script
as their default editor.
sensible-editor
try to do in the following order:
- step]
-
if
VISUAL
environment variable exists, execute
VISUAL [OPTIONS]
- step]
-
if
EDITOR
environment variable exists, execute
EDITORĀ [OPTIONS]
- step]
-
source the contents of file
~/.selected_editor
and, if
SELECTED_EDITOR
environment variable exists execute
SELECTED_EDITORĀ [OPTIONS]
- step]
-
run
editor [OPTIONS]
command
- step]
-
finally run
nano-tiny [OPTIONS]
command
SEE ALSO
environ(7)
for documentation of the EDITOR, VISUAL variables
select-editor(1)
for changing a user's default editor.
editor(1)
for default system wide editor.
BUGS
This command is protected against trivial fork bomb, when user set
EDITOR=sensible-editor
wider loops are still possible.
STANDARD
Documentation of behavior of sensible-utils under a debian system is available under
section 11.4 of debian-policy usually installed under
/usr/share/doc/debian-policy (you might need to install debian-policy)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- BUGS
-
- STANDARD
-
This document was created by
man2html,
using the manual pages.
Time: 03:36:57 GMT, April 25, 2024