You need to do shopt -s expand_aliases
in the script in addition to sourcing ~/.bashrc
.
Related Contents:
- How do I run a shell script without using “sh” or “bash” commands?
- Multiple commands in an alias for bash
- In Bash, how to add “Are you sure [Y/n]” to any command or alias?
- How can I set Bash aliases for docker containers in Dockerfile?
- How to make .bashrc aliases available within a vim shell command? (:!…)
- backslash at the beginning of a command
- Why aliases in a non-interactive Bash shell do not work
- Make a Bash alias that takes a parameter?
- Passing parameters to a Bash function
- How to detect the OS from a Bash script?
- How can I add numbers in a Bash script?
- Command not found error in Bash variable assignment
- Can a shell script set environment variables of the calling shell? [duplicate]
- How to add a progress bar to a shell script?
- How to check the exit status using an ‘if’ statement
- Can I export a variable to the environment from a Bash script without sourcing it?
- How to make “if not true condition”?
- Fast way of finding lines in one file that are not in another?
- What is a unix command for deleting the first N characters of a line?
- Is there a way to make a link clickable in the OSX Terminal?
- What do double-asterisk (**) wildcards mean?
- Multiplication on command line terminal
- How to keep two folders automatically synchronized?
- jq to replace text directly on file (like sed -i)
- How to get the last part of dirname in Bash
- grep for multiple strings in file on different lines (ie. whole file, not line based search)?
- How can I make bash tab completion behave like vim tab completion and cycle through matching matches?
- Is there any reason to use bash over zsh? [closed]
- Ctrl-C in bash scripts
- The PID of a bash child proccess (imapsync) – how do you get it?
- How to enter ssh password using bash? [duplicate]
- How can I process the results of find in a bash script?
- Bash scripts with tmux to launch a 4-paned window
- Which shortcut in Zsh does the same as Ctrl-U in Bash?
- How to turn off the pager for AWS CLI return value?
- Bash: split long string argument to multiple lines?
- How to suppress Terminated message after killing in bash?
- self-deleting shell script
- How to run one command if a previous command succeeds, otherwise run another command
- Trying to retrieve first 5 characters from string in bash error?
- Fixing a systemd service 203/EXEC failure (no such file or directory)
- Getting head to display all but the last line of a file: command substitution and standard I/O redirection
- Detect if PATH has a specific directory entry in it
- Ascii/Hex convert in bash
- Insert lines in a file starting from a specific line
- How can I scp a file with a colon in the file name?
- Pass bash script parameters to sub-process unchanged
- Display only the n’th match of grep
- store postgresql result in bash variable
- How do I echo stars (*) when reading password with `read`?