mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
[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)
This commit is contained in:
committed by
Fabian Homborg
parent
805a177673
commit
f30c50cec5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user