mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Remove string match; use string replace's --filter option
This commit is contained in:
parent
724dd06c62
commit
3cfa5d422e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue