command aliasing
The alias interface deals with all command aliases in Hilbish.
add(alias, cmd) | This is an alias (ha) for the hilbish.alias function. |
delete(name) | Removes an alias. |
list() -> table[string, string] | Get a table of all aliases, with string keys as the alias and the value as the command. |
resolve(alias) -> string? | Resolves an alias to its original command. Will thrown an error if the alias doesn’t exist. |
This is an alias (ha) for the hilbish.alias function.
This function has no parameters.
Get a table of all aliases, with string keys as the alias and the value as the command.
This function has no parameters.
1hilbish.aliases.add('hi', 'echo hi')
2
3local aliases = hilbish.aliases.list()
4-- -> {hi = 'echo hi'}
Want to help improve this page? Create an issue.