nushell: Fix config
This commit is contained in:
parent
cf8e6ee452
commit
b3caffe298
1 changed files with 11 additions and 3 deletions
|
@ -1,5 +1,13 @@
|
||||||
let carapace_completer = {|spans|
|
let carapace_completer = {|spans|
|
||||||
carapace $spans.0 nushell ... | from json
|
let expanded_alias = (scope aliases | where name == $spans.0 | get -i 0 | get -i expansion)
|
||||||
|
|
||||||
|
let spans = (if $expanded_alias != null {
|
||||||
|
spans | skip 1 | prepend ($expanded_alias | split row " " | take 1)
|
||||||
|
} else {
|
||||||
|
$spans
|
||||||
|
})
|
||||||
|
|
||||||
|
carapace $spans.0 nushell ...$spans | from json
|
||||||
}
|
}
|
||||||
|
|
||||||
# The default config record. This is where much of your global configuration is setup.
|
# The default config record. This is where much of your global configuration is setup.
|
||||||
|
|
Loading…
Reference in a new issue