Skip to content

Commit f0cd46c

Browse files
TechnoTecnaTechnoTecna
andauthored
Fix custom completion for pass by converting the path pattern string to glob (#1141)
Password file completion for `pass` no longer worked as the pattern was passed to `ls` as a string. Fixed it by converting the pattern to a glob. Co-authored-by: TechnoTecna <[email protected]>
1 parent b712004 commit f0cd46c

File tree

1 file changed

+1
-1
lines changed
  • custom-completions/pass/nu-complete

1 file changed

+1
-1
lines changed

custom-completions/pass/nu-complete/mod.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def pass_completions_directory [] {
88

99
export def "nu-complete pass-files" [] {
1010
let dir = (pass_completions_directory)
11-
ls ($dir | path join "**" | path join "*.gpg")
11+
ls ($dir | path join "**" | path join "*.gpg" | into glob)
1212
| get name
1313
| each {|it| ( $it
1414
| path relative-to $dir

0 commit comments

Comments
 (0)