Remove string match; use string replace's --filter option

This commit is contained in:
Collin Styles 2019-04-09 20:59:48 -07:00
parent 724dd06c62
commit 3cfa5d422e

View file

@ -513,7 +513,7 @@ function __fish_git_stash_not_using_subcommand
end end
function __fish_git_complete_worktrees 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 end
function __fish_git_complete_stashes function __fish_git_complete_stashes