customize-alias.html
来自「Intercom 是一个 Unix系统上灵活的语音传输软件。支持标准音频压缩比如」· HTML 代码 · 共 275 行
HTML
275 行
<HTML><HEAD><TITLE>Command Aliases</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.77+"><LINKREL="HOME"TITLE="Intercom"HREF="intercom.html"><LINKREL="UP"TITLE="Customizing Intercom for Your Needs"HREF="customize.html"><LINKREL="PREVIOUS"TITLE="Miscellaneous variables"HREF="customize-misc.html"><LINKREL="NEXT"TITLE="Interfacing With Intercom"HREF="interface.html"></HEAD><BODYCLASS="SECTION"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Intercom: Version 0.15 Reference Manual</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="customize-misc.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 4. Customizing Intercom for Your Needs</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="interface.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECTION"><H1CLASS="SECTION"><ANAME="CUSTOMIZE-ALIAS"></A>Command Aliases</H1><P>Intercom has a <SPANCLASS="emphasis"><ICLASS="EMPHASIS">very basic</I></SPAN> alias system, whereby,one can define a command which executes another. This can be most helpfulespecially when executing lengthy or repetitive commands. Allcommand-aliases are administered by none other than the<BCLASS="COMMAND">alias</B> command. With <BCLASS="COMMAND">alias</B>, you canlist, add, and remove command-aliases.</P><P>Do add an alias, the syntax is:</P><P><BCLASS="COMMAND">alias<TTCLASS="REPLACEABLE"><I><alias></I></TT><TTCLASS="REPLACEABLE"><I><action></I></TT></B></P><P>Where <TTCLASS="REPLACEABLE"><I><alias></I></TT> should be substituted for thealias you would like and <TTCLASS="REPLACEABLE"><I><action></I></TT>for the action. For example, to have the <BCLASS="COMMAND">c</B> command reference<BCLASS="COMMAND">call</B>, you would enter:</P><P><TTCLASS="PROMPT">intercom: </TT><BCLASS="COMMAND">alias c call</B></P><P>To remove an alias, the syntax is similar. Enter in <BCLASS="COMMAND">alias -u<TTCLASS="REPLACEABLE"><I><alias></I></TT><command></B>. So, toremove our c alias above, we would execute:</P><P><TTCLASS="PROMPT">intercom: </TT><BCLASS="COMMAND">alias -u c</B></P><DIVCLASS="SECTION"><H2CLASS="SECTION"><ANAME="CUSTOMIZE-ALIAS-EXAMPLES"></A>Useful Alias Examples</H2><P>The following examples demonstrate some useful command-aliases. Remember to use proper quoting when entering an alias.</P><P>Here is a very simple alias to map the ? command to help.</P><P><TTCLASS="PROMPT">intercom: </TT><BCLASS="COMMAND">alias '?' help</B></P><P>Set up an alias (coffice) to call the office using some specialsettings.</P><P><TTCLASS="PROMPT">intercom: </TT><BCLASS="COMMAND">alias coffice 'call -r 22050 -c g.723-40office.mycompany.com'</B></P><P>Set up an alias whereby the unalias command will remove analias.</P><P><TTCLASS="PROMPT">intercom: </TT><BCLASS="COMMAND">alias unalias 'alias -u'</B></P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="customize-misc.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="intercom.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="interface.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Miscellaneous variables</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="customize.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Interfacing With Intercom</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?