nushell stuff again

This commit is contained in:
Matt Nish-Lapidus 2025-06-30 11:52:10 -04:00
parent fbd6656d80
commit 62ff7c5bcf
5 changed files with 53 additions and 14 deletions

View file

@ -1,8 +1 @@
let fish_completer = {|spans|
fish --command $"complete '--do-complete=($spans | str replace --all "'" "\\'" | str join ' ')'"
| from tsv --flexible --noheaders --no-infer
| rename value description
| update value {
if ($in | path exists) {$'"($in | path expand --no-symlink | str replace --all "\"" "\\\"" )"'} else {$in}
}
}