commit: 027a224cab2883b8f240b59ec060c39929623100
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 5 20:02:06 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb 5 20:02:06 2016 +0000
URL:
https://gitweb.gentoo.org/proj/eselect-python.git/commit/?id=027a224c
Add edit action
python.eselect.in | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/python.eselect.in b/python.eselect.in
index c222460..94d751c 100644
--- a/python.eselect.in
+++ b/python.eselect.in
@@ -167,6 +167,18 @@ post_update() {
set_python_docs "${main_interp}"
}
+### edit action ###
+
+describe_edit() {
+ echo "Edit the interpreter preference list"
+}
+
+do_edit() {
+ [[ ${EDITOR} ]] || die "EDITOR is not set"
+
+ ${EDITOR} "${CONFIG_PATH}"
+}
+
### show action ###
describe_show() {