summaryrefslogtreecommitdiff
blob: 8a296f1d4632be53bb7c3f8985efbc38b1f42fad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.\" -*- coding: utf-8 -*-
.\" Copyright 2009-2019 Gentoo Authors
.\" Distributed under the terms of the GNU GPL version 2 or later
.\"
.TH editor.eselect 5 "September 2019" "Gentoo Linux" eselect
.SH NAME
editor.eselect \- The EDITOR management module for Gentoo's eselect
.SH SYNOPSIS
.B eselect editor
.RB [ help | usage | version ]
.br
.B eselect editor list
.br
.B eselect editor set
.I target
.br
.B eselect editor show
.br
.B eselect editor update
.SH DESCRIPTION
.B eselect
is Gentoo's configuration and management tool.  It features modules
that care for the individual administrative tasks.
.SH ACTION: LIST
.B eselect editor list
.br
List available targets for the
.I EDITOR
variable.

# eselect editor list
.br
Available targets for the EDITOR variable:
.br
  [1]   nano *
  [2]   emacs
  [3]   vi
  [ ]   (free form)
.SH ACTION: SET
.B eselect editor set
.I target
.br
Set the
.I EDITOR
variable in the system profile.
.I target
can be either an identification number given by
.B eselect editor list
or the name (with or without full path) of an installed text editor.

# eselect editor set emacs
.br
Setting EDITOR to emacs ...
.br
Run ". /etc/profile" to update the variable in your shell.
.SH ACTION: SHOW
.B eselect editor show
.br
Show the value of the
.I EDITOR
variable in the system profile.

# eselect editor show
.br
EDITOR variable in profile:
.br
  emacs
.SH ACTION: UPDATE
.B eselect editor update
.br
Update the
.I EDITOR
variable if it is unset or invalid.
.SH FILES
.TP
.B /etc/env.d/99editor
Configuration file where the variable is stored.
.SH AUTHOR
Ulrich Müller <ulm@gentoo.org>
.SH SEE ALSO
.BR eselect (1),
.BR visual.eselect (5),
.BR environ (7)