summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-02-05 21:02:06 +0100
committerMichał Górny <mgorny@gentoo.org>2016-02-05 21:36:30 +0100
commitbfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32 (patch)
treecb29e04a9d48ce29784143b9ed73d0c1046e0038
parentSet open enough umask before writing updates (diff)
downloadeselect-python-bfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32.tar.gz
eselect-python-bfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32.tar.bz2
eselect-python-bfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32.zip
Add edit action
-rw-r--r--python.eselect.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/python.eselect.in b/python.eselect.in
index d84f1ef..bbe024f 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() {