From a2872b4ccc5b862ba85ec3ee29b2ede794cfcbc0 Mon Sep 17 00:00:00 2001 From: Matteo Bertini Date: Mon, 28 Mar 2022 23:07:55 +0200 Subject: [PATCH] Strip '+ ' decoration in git branch list (#5016) - '+' is the prefix for the current branch in some worktree Closes #5014 --- docs/sample_config/default_config.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sample_config/default_config.nu b/docs/sample_config/default_config.nu index 8cc335450f..166d86b7ca 100644 --- a/docs/sample_config/default_config.nu +++ b/docs/sample_config/default_config.nu @@ -61,7 +61,7 @@ module completions { # # This is a simplified version of completions for git branches and git remotes def "nu-complete git branches" [] { - ^git branch | lines | each { |line| $line | str find-replace '\* ' '' | str trim } + ^git branch | lines | each { |line| $line | str find-replace '[\*\+] ' '' | str trim } } def "nu-complete git remotes" [] {