diff options
author | Ulrich Müller <ulm@gentoo.org> | 2019-09-02 12:25:45 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2019-09-02 12:25:45 +0200 |
commit | 0905154aae24c2f17b137b45f5a1dd11fb4774fb (patch) | |
tree | 98d070daf670e806a1e0827da3e355820d4973d1 /modules | |
parent | ChangeLog: Use UTF-8. (diff) | |
download | eselect-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 'modules')
-rw-r--r-- | modules/editor.eselect | 7 | ||||
-rw-r--r-- | modules/pager.eselect | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/modules/editor.eselect b/modules/editor.eselect index 1bee5ac..835b9e8 100644 --- a/modules/editor.eselect +++ b/modules/editor.eselect @@ -5,12 +5,7 @@ EDITOR_VAR="EDITOR" EDITOR_ENVFILE="/etc/env.d/99editor" # list of most common cases only -EDITOR_LIST="/bin/nano - /bin/ed - /usr/bin/emacs - /usr/bin/ex - /usr/bin/vi - /usr/bin/xemacs" +EDITOR_LIST="nano ed emacs ex vi xemacs" inherit editor-variable diff --git a/modules/pager.eselect b/modules/pager.eselect index d0ff910..8c5d7fd 100644 --- a/modules/pager.eselect +++ b/modules/pager.eselect @@ -4,7 +4,7 @@ EDITOR_VAR="PAGER" EDITOR_ENVFILE="/etc/env.d/99pager" -EDITOR_LIST="/usr/bin/less /bin/more /usr/bin/most" +EDITOR_LIST="less more most" inherit editor-variable |