mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
Add aliases to autocomplete
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user