1alias [ {+|-}gmrsL ] [ name[=value] ... ] 2 For each name with a corresponding value, define an alias with 3 that value. A trailing space in value causes the next word to 4 be checked for alias expansion. If the -g flag is present, 5 define a global alias; global aliases are expanded even if they 6 do not occur in command position. 7 8 If the -s flag is present, define a suffix alias: if the command 9 word on a command line is in the form `text.name', where text is 10 any non-empty string, it is replaced by the text `value 11 text.name'. Note that name is treated as a literal string, not 12 a pattern. A trailing space in value is not special in this 13 case. For example, 14 15 alias -s ps=gv 16 17 will cause the command `*.ps' to be expanded to `gv *.ps'. As 18 alias expansion is carried out earlier than globbing, the `*.ps' 19 will then be expanded. Suffix aliases constitute a different 20 name space from other aliases (so in the above example it is 21 still possible to create an alias for the command ps) and the 22 two sets are never listed together. 23 24 For each name with no value, print the value of name, if any. 25 With no arguments, print all currently defined aliases other 26 than suffix aliases. If the -m flag is given the arguments are 27 taken as patterns (they should be quoted to preserve them from 28 being interpreted as glob patterns), and the aliases matching 29 these patterns are printed. When printing aliases and one of 30 the -g, -r or -s flags is present, restrict the printing to 31 global, regular or suffix aliases, respectively; a regular alias 32 is one which is neither a global nor a suffix alias. Using `+' 33 instead of `-', or ending the option list with a single `+', 34 prevents the values of the aliases from being printed. 35 36 If the -L flag is present, then print each alias in a manner 37 suitable for putting in a startup script. The exit status is 38 nonzero if a name (with no value) is given for which no alias 39 has been defined. 40 41 For more on aliases, include common problems, see the section 42 ALIASING in zshmisc(1). 43