The command shopt -s expand_aliases
will allow alias expansion in non-interactive shells.
More Related Contents:
- Can’t get expand_aliases to take effect
- Passing arguments to an interactive program non-interactively
- How do I run a shell script without using “sh” or “bash” commands?
- How to use aliases defined in .bashrc in other scripts?
- How to skip the for loop when there are no matching files?
- How to make .bashrc aliases available within a vim shell command? (:!…)
- What expands to all files in current directory recursively?
- In Bash, how to add “Are you sure [Y/n]” to any command or alias?
- Why bash alias doesn’t work in scripts? [duplicate]
- Why would I create an alias which creates a function?
- How can I check if a program exists from a Bash script?
- How can I compare numbers in Bash?
- echo “#!” fails — “event not found”
- Pipe output and capture exit status in Bash
- Shell redirection i/o order
- Loop through all the files with a specific extension
- Colorized grep — viewing the entire file with highlighted matches
- How to pass in password to pg_dump?
- How can I profile a Bash shell script slow startup?
- Select random lines from a file
- How to split strings over multiple lines in Bash?
- Creating a string variable name from the value of another string
- Passing arguments by reference
- How do I remove all .pyc files from a project?
- Sorting strings with numbers in Bash [duplicate]
- Get current directory or folder name (without the full path)
- What does the double-asterisk (**) wildcard mean?
- Using cut command to remove multiple columns
- How to send control+c from a bash script?
- What does — do when running an npm command?