Refactor/nu remove dep on sh (#823)
* fix: join flags with ` ` * refactor: remove dependency on `sh`
This commit is contained in:
parent
e9f9f9f994
commit
a41c2cc2d3
1 changed files with 4 additions and 4 deletions
|
@ -28,10 +28,10 @@ def _atuin_search_cmd [...flags: string] {
|
|||
[
|
||||
$ATUIN_KEYBINDING_TOKEN,
|
||||
([
|
||||
`commandline (sh -c 'RUST_LOG=error atuin search `,
|
||||
$flags,
|
||||
` -i -- "$0" 3>&1 1>&2 2>&3' (commandline))`,
|
||||
] | flatten | str join ''),
|
||||
`commandline (RUST_LOG=error run-external --redirect-stderr atuin search`,
|
||||
($flags | append [--interactive, --] | each {|e| $'"($e)"'}),
|
||||
`(commandline) | complete | $in.stderr | str substring ',-1')`,
|
||||
] | flatten | str join ' '),
|
||||
] | str join "\n"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue