.bash_alias - GiselleSerate/myaliases GitHub Wiki
.bash_alias
altalias [optional: -s] [nickname]=[commands] [nickname2]=[commands2] ...
-s
will save these aliases across this and future sessions. Otherwise, altalias
has the same behavior as alias
.
If desired, altalias
can completely replace normal alias
, since it extends the behavior of alias
without interfering.
# alias alias to altalias
if typeset -f altalias > /dev/null; then
alias alias='altalias'
fi