ALIAS(1)

NAME

alias - define or print command aliases.

SYNOPSIS

alias [name[=value] ...]
alias -d [name[=directory] ...]

DESCRIPTION

alias is a POSIX regular builtin provided by Rush. Define or print command aliases.

In the default Rush mode, alias -d name=/absolute/path defines a named directory. The directory may then be used as ~name or ~name/subpath. A name without a value prints that entry, and no operands print all named directories. This is the same table accessed by hash -d.

Named directories are a non-POSIX extension and are disabled in POSIX mode. Use unalias -d name to remove an entry.

This page summarizes the builtin in Rush documentation. POSIX is the normative reference for detailed portable behavior.

EXIT STATUS

See the POSIX definition for command-specific status rules. Usage errors generally return a non-zero status.

SEE ALSO

hash(1), unalias(1), rush-builtins(7), POSIX Shell Command Language.