Skip to content

Commit

Permalink
Fix a bug in zoxide completer (nushell#1288)
Browse files Browse the repository at this point in the history
should using ...$in in extern command. other wise will cause an error and no result will be returned.
  • Loading branch information
shenjiangqiu authored Mar 7, 2024
1 parent 7b943f5 commit e0d7495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/external_completers.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ A couple of things to note on this command:

```nu
let zoxide_completer = {|spans|
$spans | skip 1 | zoxide query -l $in | lines | where {|x| $x != $env.PWD}
$spans | skip 1 | zoxide query -l ...$in | lines | where {|x| $x != $env.PWD}
}
```

Expand Down

0 comments on commit e0d7495

Please sign in to comment.