mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
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 <techno.tecna@protonmail.com>
This commit is contained in:
parent
b7120045bc
commit
f0cd46cafc
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ def pass_completions_directory [] {
|
||||||
|
|
||||||
export def "nu-complete pass-files" [] {
|
export def "nu-complete pass-files" [] {
|
||||||
let dir = (pass_completions_directory)
|
let dir = (pass_completions_directory)
|
||||||
ls ($dir | path join "**" | path join "*.gpg")
|
ls ($dir | path join "**" | path join "*.gpg" | into glob)
|
||||||
| get name
|
| get name
|
||||||
| each {|it| ( $it
|
| each {|it| ( $it
|
||||||
| path relative-to $dir
|
| path relative-to $dir
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue