From 3cfa5d422e01993db3709168b8e4406e3402707c Mon Sep 17 00:00:00 2001 From: Collin Styles Date: Tue, 9 Apr 2019 20:59:48 -0700 Subject: [PATCH] Remove string match; use string replace's --filter option --- share/completions/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index ea4ad712a..ced03d175 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -513,7 +513,7 @@ function __fish_git_stash_not_using_subcommand end function __fish_git_complete_worktrees - command git worktree list --porcelain | string match -er '^worktree' | string replace -r '^worktree\s*' '' + command git worktree list --porcelain | string replace --regex --filter '^worktree\s*' '' end function __fish_git_complete_stashes