For Revolver version 3.1+.
An alias is an additional short name given to a command so a user can use the new name to refer to the original command. Aliases also support providing parameters to the command being aliased, so users can specify different behaviour for their command as well.
Aliases are created using the
Aliased commands still retain their original command name. The command will be accessible through it’s original name and all alias names for the command.
The following example shows a simple alias, providing an alternate name for the
alias dir ls
Now the user can use either
dir to list the children of the current item.
Aliases can also supply parameters to pass to the command being aliased, to make using the same parameters less repeatative.
The following example shows how to provide parameters to the command being aliased.
alias ssf sf -nv
The above command creates an alias
ssf which executes the
sf command passing the
You can see the aliases that have been set for a command using the
bind command without any parameters. This will list all commands and the class implementing the command, with aliases following the class name in brackets.
An alias can be removed by using the
alias command and just passing the alias name, without any command.
The below example removes the above
dir alias for the
If you attempt to remove an alias which does not exist, you’ll recieve an error that the alias was not found.