workstation/roles/home-cli/files/bash_profile

20 lines
223 B
Bash
Raw Normal View History

2021-02-20 22:59:54 +00:00
#!/bin/bash
if [ -r "$HOME/.profile" ]
2021-02-20 22:59:54 +00:00
then
. "$HOME/.profile"
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