In bash
, we can use shopt -s expand_aliases
to expand aliases in scripts.
What are the equivalent commands for zsh
, csh
, and tcsh
? Do they even exist?
In focusing my efforts on zsh
, I haven’t found such a command. I even tried sourcing the file with the aliases inside the script, but it did not work.
~/.zshrc
and Isource ${HOME}/.zshrc
at the top of a script, that script will not be able to use the aliases that exist in~/.zshrc
. – Idaliaidalina