nushell stuff

This commit is contained in:
Matt Nish-Lapidus 2025-06-30 10:50:46 -04:00
parent 396aee7db9
commit fbd6656d80
6 changed files with 36 additions and 85 deletions

View file

@ -0,0 +1,8 @@
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}
}
}