19 lines
223 B
Bash
19 lines
223 B
Bash
#!/bin/bash
|
|
if [ -r "$HOME/.profile" ]
|
|
then
|
|
. "$HOME/.profile"
|
|
fi
|
|
|
|
case "$-" in
|
|
*i*)
|
|
# Shell is interactive.
|
|
if [ -r "$HOME/.bashrc" ]
|
|
then
|
|
. "$HOME/.bashrc"
|
|
fi
|
|
;;
|
|
*)
|
|
# Shell is not interactive.
|
|
return 1
|
|
;;
|
|
esac
|