From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Complete './pre-inst-env guix ...' Date: Wed, 10 Jun 2015 21:44:43 +0200 Message-ID: <87381zgxg4.fsf@gnu.org> References: <87mw0czhvi.fsf@gmail.com> <87pp57zg2b.fsf@gnu.org> <8738224m5j.fsf@gmail.com> <87fv62m2i3.fsf@gnu.org> <87bngodnpf.fsf_-_@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2lvd-00051X-Iy for guix-devel@gnu.org; Wed, 10 Jun 2015 15:44:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2lva-0007rG-7J for guix-devel@gnu.org; Wed, 10 Jun 2015 15:44:49 -0400 In-Reply-To: <87bngodnpf.fsf_-_@gmail.com> (Alex Kost's message of "Wed, 10 Jun 2015 10:31:08 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > Ludovic Court=C3=A8s (2015-06-08 22:19 +0300) wrote: > >> PS: I wonder if something could also be done for =E2=80=9C./pre-inst-env= guix=E2=80=9D... > > IIUC there is no simple way to configure pcomplete for that. Here is > an invasive hack I came up with: Nice, thanks! > (defvar al/pcomplete-skipped-commands > '("sudo" "pre-inst-env") Actually =E2=80=98sudo=E2=80=99 completion works well by default; e.g., =E2= =80=9Csudo ha=E2=80=9D completes to =E2=80=9Csudo halt=E2=80=9D. Could it be that there=E2=80=99s= another way to achieve that? Ludo=E2=80=99.