Add aliases to autocomplete

This commit is contained in:
Dustin Brett
2025-02-14 16:52:21 -08:00
parent b40ed60eb0
commit 257293d02f

View File

@@ -151,7 +151,11 @@ export const autoComplete = (
localEcho.addAutocompleteHandler((index: number, [command]): string[] => {
if (index === 0) {
return [...Object.keys(commands), ...directory];
return [
...Object.keys(commands),
...Object.values(aliases).flat(),
...directory,
];
}
if (index === 1) {
const lowerCommand = command.toLowerCase();