$alias » History » Version 2
Per Amundsen, 06/28/2016 12:42 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.4_ |
|---|---|---|---|
| 2 | |||
| 3 | *$alias(N/filename)* |
||
| 4 | |||
| 5 | Returns the filename for the Nth loaded alias file or if you specify a filename, it returns [[$null]] if the file is not loaded. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | N/filename - Nth alias or alias filename. |
||
| 10 | |||
| 11 | *Example* |
||
| 12 | |||
| 13 | <pre> |
||
| 14 | 2 | Per Amundsen | ; Print number of alias files. |
| 15 | 1 | Per Amundsen | //echo -ag $alias(0) |
| 16 | |||
| 17 | 2 | Per Amundsen | ; Print first alias file. |
| 18 | 1 | Per Amundsen | //echo -ag $alias(1) |
| 19 | |||
| 20 | 2 | Per Amundsen | ; Check if aliases.ini is loaded. |
| 21 | //echo -ag aliases.ini is $iif($alias(aliases.ini),loaded, not loaded) |
||
| 22 | 1 | Per Amundsen | </pre> |