unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: 32020@debbugs.gnu.org
Subject: bug#32020: [PATCH 2/2] bash completion: Complete files names after 'guix weather -m'.
Date: Sat, 30 Jun 2018 19:52:59 +0300	[thread overview]
Message-ID: <20180630165259.29152-2-go.wigust@gmail.com> (raw)
In-Reply-To: <20180630165259.29152-1-go.wigust@gmail.com>

* etc/completion/bash/guix (_guix_complete): Complete files names after 'guix
weather -m'.
---
 etc/completion/bash/guix | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index cc18fbc94..a593b8112 100644
--- a/etc/completion/bash/guix
+++ b/etc/completion/bash/guix
@@ -195,6 +195,12 @@ _guix_complete ()
 	    elif _guix_is_command "hash" || _guix_is_command "gc"
 	    then
 		_guix_complete_file
+            elif _guix_is_command "weather"
+            then
+                if _guix_is_dash_m
+                then
+                    _guix_complete_file
+                fi
 	    else
 		_guix_complete_available_package "$word_at_point"
 	    fi
-- 
2.18.0

  reply	other threads:[~2018-06-30 16:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-30 15:30 bug#32020: 3 bash-completion errors swedebugia
2018-06-30 16:52 ` bug#32020: [PATCH 1/2] bash completion: Complete files names after 'guix build -L' Oleg Pykhalov
2018-06-30 16:52   ` Oleg Pykhalov [this message]
2018-07-02 10:21   ` Ludovic Courtès
2018-07-03  4:06     ` Oleg Pykhalov
2018-06-30 17:00 ` bug#32020: 3 bash-completion errors Oleg Pykhalov
2018-06-30 18:24   ` swedebugia
2018-06-30 18:41     ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180630165259.29152-2-go.wigust@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=32020@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).