I'm trying to write a script that will set up aliases for my bash shell, but I don't want to source
it automatically in .bashrc
- I need to have the aliases in a subset of my terminals.
Is it possible to alias
a command in a script and have the aliased command work for the shell the script was run from?
Desired functionality:
$ alias
# ... no output here
$ ./my-script
$ alias
alias foo='bar'
alias alpha='beta'
...