2021-02-20 22:59:54 +00:00
|
|
|
#!/bin/bash
|
2022-09-16 07:42:02 +00:00
|
|
|
if [ -r "$HOME/.profile" ]
|
2021-02-20 22:59:54 +00:00
|
|
|
then
|
2022-09-16 07:42:02 +00:00
|
|
|
. "$HOME/.profile"
|
2019-10-03 10:50:19 +00:00
|
|
|
fi
|
2022-09-16 07:52:01 +00:00
|
|
|
|
|
|
|
case "$-" in
|
|
|
|
*i*)
|
|
|
|
# Shell is interactive.
|
|
|
|
if [ -r "$HOME/.bashrc" ]
|
|
|
|
then
|
|
|
|
. "$HOME/.bashrc"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
# Shell is not interactive.
|
|
|
|
return 1
|
|
|
|
;;
|
|
|
|
esac
|