2019-10-04 12:04:17 +00:00
|
|
|
cdist-type__sensible_editor(7)
|
2019-10-06 10:07:54 +00:00
|
|
|
==============================
|
2019-10-02 13:37:51 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2019-10-04 12:04:17 +00:00
|
|
|
cdist-type__sensible_editor - Select the sensible-editor
|
2019-10-02 13:37:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2019-10-08 21:05:23 +00:00
|
|
|
This cdist type allows you to select the :strong:`sensible-editor` for
|
|
|
|
a given user.
|
2019-10-02 13:37:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
|
|
|
editor
|
|
|
|
Name or path of the editor to be selected.
|
2019-10-08 21:05:23 +00:00
|
|
|
On systems other than Debian derivatives an absolute path is required.
|
2019-10-02 13:37:51 +00:00
|
|
|
|
2019-10-13 08:14:05 +00:00
|
|
|
It is permissible to omit this parameter if --state is absent.
|
|
|
|
|
2019-10-02 13:37:51 +00:00
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
|
|
|
state
|
2019-10-13 11:49:51 +00:00
|
|
|
'present', 'absent', or 'exists'. Defaults to 'present', where:
|
|
|
|
|
|
|
|
present
|
|
|
|
the sensible-editor is exactly what is specified in --editor.
|
|
|
|
absent
|
|
|
|
no sensible-editor configuration is present.
|
|
|
|
exists
|
|
|
|
the sensible-editor will be set to what is specified in --editor,
|
|
|
|
unless there already is a configuration on the target system.
|
2019-10-02 13:37:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. code-block:: sh
|
|
|
|
|
2019-10-04 12:04:17 +00:00
|
|
|
__sensible_editor root --editor /bin/ed # ed(1) is the standard
|
|
|
|
__sensible_editor noob --editor nano
|
2019-10-02 13:37:51 +00:00
|
|
|
|
|
|
|
|
2019-10-08 21:05:23 +00:00
|
|
|
LIMITATIONS
|
|
|
|
-----------
|
|
|
|
|
2019-10-12 11:27:42 +00:00
|
|
|
This type depends upon the :strong:`sensible-editor`\ (1) script which
|
|
|
|
is part of the sensible-utils package.
|
2019-10-08 21:05:23 +00:00
|
|
|
|
2019-10-12 11:27:42 +00:00
|
|
|
Therefore, the following operating systems are supported:
|
|
|
|
* Debian 8 (jessie) or later
|
|
|
|
* Devuan
|
|
|
|
* Ubuntu 8.10 (intrepid) or later
|
|
|
|
* RHEL/CentOS 7 or later (EPEL repo required)
|
|
|
|
* Fedora 21 or later
|
2019-10-12 11:02:26 +00:00
|
|
|
|
2019-10-12 11:27:42 +00:00
|
|
|
Note: on old versions of Ubuntu the sensible-* utils are part of the
|
2019-10-12 11:02:26 +00:00
|
|
|
debianutils package.
|
2019-10-08 21:05:23 +00:00
|
|
|
|
2019-10-02 13:37:51 +00:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
2019-10-08 21:05:23 +00:00
|
|
|
:strong:`select-editor`\ (1), :strong:`sensible-editor`\ (1).
|
2019-10-02 13:37:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
-------
|
|
|
|
Dennis Camera <dennis.camera--@--ssrq-sds-fds.ch>
|
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2019 Dennis Camera.
|
|
|
|
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 3 of
|
|
|
|
the License, or (at your option) any later version.
|