mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-16 17:00:32 +03:00
Fix git-completions.nu (#620)
The parsing of local git branches accidentally escaped an asterisks because it had been used as an regular expression in the past.
This commit is contained in:
parent
6745d1cf93
commit
9ceac61989
@ -24,7 +24,7 @@ def "nu-complete git commits current branch" [] {
|
||||
|
||||
# Yield local branches like `main`, `feature/typo_fix`
|
||||
def "nu-complete git local branches" [] {
|
||||
^git branch | lines | each { |line| $line | str replace '\* ' "" | str trim }
|
||||
^git branch | lines | each { |line| $line | str replace '* ' "" | str trim }
|
||||
}
|
||||
|
||||
# Yield remote branches like `origin/main`, `upstream/feature-a`
|
||||
|
Loading…
Reference in New Issue
Block a user