$BASH_ENV
–
Path to Startup File
If $BASH_ENV
is defined when Bash executes a script, then it’s expanded and used as the name of Bash’s startup
file.
Links
Examples
- Define a startup script
1 2 3
echo 'echo startup' > startup.sh echo 'echo script' > script.sh BASH_ENV=./startup.sh bash ./script.sh
BashSupport Pro is a Bash IDE with support for $BASH_ENV – try it now!