mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-07-31 14:17:45 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue