From bfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 5 Feb 2016 21:02:06 +0100 Subject: Add edit action --- python.eselect.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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() { -- cgit v1.2.3-65-gdbad