blob: 526e7f3b89a4e278528389eba30367201240dcab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Give up completely if no BASH_VERSINFO (<2.0)
if [ -z "$BASH_VERSINFO" ]; then
return
fi
# Source Bourne shell profile if it exists
if [[ -r $HOME/.profile ]]; then
source "$HOME"/.profile
fi
# Source interactive Bash config if it exists
if [[ -r $HOME/.bashrc ]]; then
source "$HOME"/.bashrc
fi
# Print Bash version
printf 'bash: %s\n' "$BASH_VERSION"
|