I know that in bash you can set up aliases in a .bash_aliases file so that the command you type doesnt need to be a command stored in the binaries in the system. Is there any way I can get aliases into zsh?
You can do it by the "alias" command with this syntax:
alias [ -gmrL ] [ name[=value] ... ]
For "gmrL" switches, see this guide, which is my reference.
For each name, with no value, zsh will print the name and what it is aliased to previously. With no arguments at all,
alias prints the values of ALL defined aliases.
To define one or more aliases, simply enter:
alias name1=value1 name2=value2 ... nameX=valueX
For each name with a corresponding value, zsh defines an alias with that value. For further info, check out that link. ;-)
I go back and forth between bash and zsh, and use the same
.aliases file for both. They share the same basic alias syntax, so you can create a
.aliases file and link it to
if [ -f ~/.aliases ]; then . ~/.aliases fi
FWIW this can also be done with environment variable declarations, in a separate