diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-02-05 21:02:06 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-02-05 21:36:30 +0100 |
commit | bfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32 (patch) | |
tree | cb29e04a9d48ce29784143b9ed73d0c1046e0038 | |
parent | Set open enough umask before writing updates (diff) | |
download | eselect-python-bfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32.tar.gz eselect-python-bfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32.tar.bz2 eselect-python-bfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32.zip |
Add edit action
-rw-r--r-- | python.eselect.in | 12 |
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() { |