From f30c50cec5b70a0bceeca0220e2d87c900eab948 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 21 Apr 2017 12:40:52 -0400 Subject: [PATCH] [hg completions] remove a grep and use hg's native query syntax This has the side benefit of working around a wild bug with readline+fish that I've reported to the upstream readline developers. (The result of that bug is that the hg processes are constantly being leaked as `bg` jobs in the shell, which is how I came to notice this in the first place) --- share/completions/hg.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/hg.fish b/share/completions/hg.fish index 3c4b1f170..39dd14b4d 100644 --- a/share/completions/hg.fish +++ b/share/completions/hg.fish @@ -318,7 +318,7 @@ function __fish_hg_sources end function __fish_hg_mq_enabled - if set -l line (__fish_hg config | grep extensions.hgext.mq) + if set -l line (__fish_hg config extensions.hgext.mq) set -l parts (string split "=" -m 1 $line) not string match -r -q -- "^!" $parts[2] return