Project

General

Profile

Alias » History » Version 8

Per Amundsen, 08/10/2015 09:27 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 7 Per Amundsen
*/alias [-l] [filename] <aliasname> <command>*
4 1 Per Amundsen
5
Add/remove/replace any single line alias.
6 7 Per Amundsen
7
*Switches*
8
9
-l - Adds a local alias only available from current script.
10 1 Per Amundsen
11 5 Per Amundsen
*Parameters*
12 6 Per Amundsen
13 5 Per Amundsen
[filename] - An optional alias filename to update, if no filename is specified it will use the first match or the first loaded alias file.
14
<aliasname> - Name of the alias to add/remove/replace.
15
<command> - The command(s) to be executed by the aliasname.
16
17
*Example*
18 6 Per Amundsen
19 1 Per Amundsen
<pre>
20 8 Per Amundsen
; This will replace the first matching alias with the new command.
21 3 Per Amundsen
/alias /hello /me says hello
22
23 8 Per Amundsen
; To remove an existing alias:
24 3 Per Amundsen
/alias /hello
25
26 8 Per Amundsen
; If you want to add/remove/replace a alias in an existing file
27 1 Per Amundsen
/alias hello.txt /alias /me says hello
28
</pre>