Command Aliases

Intercom has a very basic alias system, whereby, one can define a command which executes another. This can be most helpful especially when executing lengthy or repetitive commands. All command-aliases are administered by none other than the alias command. With alias, you can list, add, and remove command-aliases.

Do add an alias, the syntax is:

alias <alias> <action>

Where <alias> should be substituted for the alias you would like and <action>for the action. For example, to have the c command reference call, you would enter:

intercom: alias c call

To remove an alias, the syntax is similar. Enter in alias -u <alias><command>. So, to remove our c alias above, we would execute:

intercom: alias -u c

Useful Alias Examples

The following examples demonstrate some useful command-aliases. Remember to use proper quoting when entering an alias.

Here is a very simple alias to map the ? command to help.

intercom: alias '?' help

Set up an alias (coffice) to call the office using some special settings.

intercom: alias coffice 'call -r 22050 -c g.723-40 office.mycompany.com'

Set up an alias whereby the unalias command will remove an alias.

intercom: alias unalias 'alias -u'