mirror of
https://github.com/RGBCube/ncc
synced 2025-08-01 12:37:46 +00:00
Rename nushell variable
This commit is contained in:
parent
e40b8a1885
commit
7acebbbac6
1 changed files with 3 additions and 2 deletions
|
@ -140,12 +140,13 @@ $env.config.completions = {
|
|||
$tokens
|
||||
}
|
||||
|
||||
let cmd = $tokens.0 | str trim --left --char "^"
|
||||
let command = $tokens.0 | str trim --left --char "^"
|
||||
|
||||
let completions = ^carapace $cmd nushell $tokens | from json | default []
|
||||
let completions = carapace $command nushell $tokens | from json | default []
|
||||
|
||||
if ($completions | is-empty) {
|
||||
let path = $tokens | last
|
||||
|
||||
ls $"($path)*" | each {|it|
|
||||
let choice = if ($path | str ends-with "/") {
|
||||
$path | path join ($it.name | path basename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue