ALIAS

Keywords: ALIAS, ALIASES

Category: Basics

=== USER MANUAL === Usage: alias alias <name> <command> alias <name> Description: Create, delete, or list command aliases. An alias lets you type a single word to execute one or more commands. Subcommands: alias .................. List all your currently defined aliases. alias <name> <command> . Create or replace an alias. The name must be a single word. The command can be any string. If the alias already exists, it is replaced. alias <name> ........... Delete an existing alias. Multiple Commands: Use a semicolon (;) to chain multiple commands in one alias: > alias eat get bread bag; eat bread Variables: $1 through $9 .... Positional arguments passed after the alias. $* ............... The entire argument string after the alias name. > alias k kill $1 > k drone -- executes: kill drone > alias chat chat $* > chat Hi guys! -- executes: chat Hi guys! Restrictions: - You cannot alias the word alias itself. - Aliases cannot be nested or used recursively -- commands within an alias are always interpreted as built-in commands. - Can be used from any position, even while dead. - Aliases are saved across sessions. Related Helpfiles: ! === END MANUAL ===