aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2019-09-02 12:25:45 +0200
committerUlrich Müller <ulm@gentoo.org>2019-09-02 12:25:45 +0200
commit0905154aae24c2f17b137b45f5a1dd11fb4774fb (patch)
tree98d070daf670e806a1e0827da3e355820d4973d1 /man
parentChangeLog: Use UTF-8. (diff)
downloadeselect-0905154aae24c2f17b137b45f5a1dd11fb4774fb.tar.gz
eselect-0905154aae24c2f17b137b45f5a1dd11fb4774fb.tar.bz2
eselect-0905154aae24c2f17b137b45f5a1dd11fb4774fb.zip
Support relative pathnames in editor-variable library.
* libs/editor-variable.bash.in (find_in_path): New function, looks up its first argument in EDITOR_PATH, and tests if it exists. (find_targets, do_set): Use it. * modules/pager.eselect (EDITOR_LIST): * modules/editor.eselect (EDITOR_LIST): Don't use absolute paths. * man/editor.eselect.5: * man/pager.eselect.5: Update. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'man')
-rw-r--r--man/editor.eselect.514
-rw-r--r--man/pager.eselect.513
2 files changed, 14 insertions, 13 deletions
diff --git a/man/editor.eselect.5 b/man/editor.eselect.5
index 218500a..8a296f1 100644
--- a/man/editor.eselect.5
+++ b/man/editor.eselect.5
@@ -2,7 +2,7 @@
.\" Copyright 2009-2019 Gentoo Authors
.\" Distributed under the terms of the GNU GPL version 2 or later
.\"
-.TH editor.eselect 5 "September 2012" "Gentoo Linux" eselect
+.TH editor.eselect 5 "September 2019" "Gentoo Linux" eselect
.SH NAME
editor.eselect \- The EDITOR management module for Gentoo's eselect
.SH SYNOPSIS
@@ -32,9 +32,9 @@ variable.
.br
Available targets for the EDITOR variable:
.br
- [1] /bin/nano *
- [2] /usr/bin/emacs
- [3] /usr/bin/vi
+ [1] nano *
+ [2] emacs
+ [3] vi
[ ] (free form)
.SH ACTION: SET
.B eselect editor set
@@ -46,11 +46,11 @@ variable in the system profile.
.I target
can be either an identification number given by
.B eselect editor list
-or the name of an installed text editor.
+or the name (with or without full path) of an installed text editor.
# eselect editor set emacs
.br
-Setting EDITOR to /usr/bin/emacs ...
+Setting EDITOR to emacs ...
.br
Run ". /etc/profile" to update the variable in your shell.
.SH ACTION: SHOW
@@ -64,7 +64,7 @@ variable in the system profile.
.br
EDITOR variable in profile:
.br
- /usr/bin/emacs
+ emacs
.SH ACTION: UPDATE
.B eselect editor update
.br
diff --git a/man/pager.eselect.5 b/man/pager.eselect.5
index a0d1052..e5ac4c6 100644
--- a/man/pager.eselect.5
+++ b/man/pager.eselect.5
@@ -2,7 +2,7 @@
.\" Copyright 2009-2019 Gentoo Authors
.\" Distributed under the terms of the GNU GPL version 2 or later
.\"
-.TH pager.eselect 5 "June 2016" "Gentoo Linux" eselect
+.TH pager.eselect 5 "September 2019" "Gentoo Linux" eselect
.SH NAME
pager.eselect \- The PAGER management module for Gentoo's eselect
.SH SYNOPSIS
@@ -32,8 +32,8 @@ variable.
.br
Available targets for the PAGER variable:
.br
- [1] /usr/bin/less
- [2] /bin/more *
+ [1] less
+ [2] more *
[ ] (free form)
.SH ACTION: SET
.B eselect pager set
@@ -45,11 +45,12 @@ variable in the system profile.
.I target
can be either an identification number given by
.B eselect pager list
-or the name of an installed terminal pager program.
+or the name (with or without full path) of an installed terminal pager
+program.
# eselect pager set 2
.br
-Setting PAGER to /usr/bin/less ...
+Setting PAGER to less ...
.br
Run ". /etc/profile" to update the variable in your shell.
.SH ACTION: SHOW
@@ -63,7 +64,7 @@ variable in the system profile.
.br
PAGER variable in profile:
.br
- /usr/bin/less
+ less
.SH ACTION: UPDATE
.B eselect pager update
.br