no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


help:alias [2021/06/26 18:05] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== Other: alias ======
 + 
 +                                                                              
 +  Syntax: alias [<alias> [<value>]]                                           
 +                                                                              
 +  View, or set an alias.                                                      
 +                                                                              
 +  When setting aliases, there are a number of variables that  are  replaced   
 +  by the alias processor.                                                     
 +    $*  is replaced by the whole argument given to the alias,                 
 +    $1  is replaced by the first argument given,                              
 +    $2  is replaced by the second argument,                                   
 +    etc....                                                                   
 +                                                                              
 +  Defaults can be given to each argument like so:                             
 +    $3{3rd}      (default of third argument is "3rd"                        
 +                                                                              
 +  Examples:                                                                   
 +    alias gsl grin $1 smile $1 laugh $1                                       
 +    alias x look at $*                                                        
 +    alias grin grin $*{mischievously}                                         
 +    alias yas say $5 $4 $3 $2 $1                                              
 +                                                                              
 +  Note:                                                                       
 +    Any alias defined without  a  variable  gains a $* wildcard at the end    
 +    automatically.                                                            
 +                                                                              
  
 +See also: [[unalias]], [[history]], [[input]]