From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-861663-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 866A358973
	for <garchives@archives.gentoo.org>; Fri,  5 Feb 2016 20:36:47 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0FADD21C028;
	Fri,  5 Feb 2016 20:36:46 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id A3A19E080C
	for <gentoo-commits@lists.gentoo.org>; Fri,  5 Feb 2016 20:36:45 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C7932340AFF
	for <gentoo-commits@lists.gentoo.org>; Fri,  5 Feb 2016 20:36:44 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 208F4CEB
	for <gentoo-commits@lists.gentoo.org>; Fri,  5 Feb 2016 20:36:42 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Message-ID: <1454704590.bfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32.mgorny@gentoo>
Subject: [gentoo-commits] proj/eselect-python:pyexec-2.3 commit in: /
X-VCS-Repository: proj/eselect-python
X-VCS-Files: python.eselect.in
X-VCS-Directories: /
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: bfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32
X-VCS-Branch: pyexec-2.3
Date: Fri,  5 Feb 2016 20:36:42 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 5231be97-86b6-44b7-b055-190f1cb383cf
X-Archives-Hash: c4f6ab1523b5072d3b367951b097648c
Message-ID: <20160205203642.q2kA0rVTSzFrWxgQtaz0rOsrwfL3E_S34WDltdFbzf8@z>

commit:     bfce7d731ce9c41c6bc3e5b8acf26f4d2ec53e32
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:36:30 2016 +0000
URL:        https://gitweb.gentoo.org/proj/eselect-python.git/commit/?id=bfce7d73

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() {