Does alias work in Bash script?
A BASH Alias is a map of commands with the sets of commands or functions that can be used as a shortcut in the command line for a BASH environment. Bash Alias allows to aggregate multiple functions into a single command and also it avoids repetitive or large commands into a simple shortcut command.
How to set alias in Bash script?
Making alias work in bash script
Add the command 'shopt -s expand_aliases' at the start of the script to expand aliases and make alias command work in the bash script.
Can an alias be used in a script?
Creating alternate names for commands with parameters
You can assign an alias to a cmdlet, script, function, or executable file.