2022-09-16 07:46:13 +00:00
|
|
|
#!/bin/sh
|
2022-09-16 07:42:02 +00:00
|
|
|
if [ -r "$HOME/.profile" ]
|
|
|
|
then
|
2022-11-28 22:45:54 +00:00
|
|
|
. "$HOME/.profile"
|
2022-09-16 07:42:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
case "$-" in
|
|
|
|
*i*)
|
2022-11-28 22:45:54 +00:00
|
|
|
# Shell is interactive.
|
|
|
|
if [ -r /etc/profile.d/bash_completion.sh ]
|
|
|
|
then
|
|
|
|
. /etc/profile.d/bash_completion.sh
|
|
|
|
fi
|
2023-08-31 22:07:36 +00:00
|
|
|
if [ -z "$ZSH_VERSION" ]
|
|
|
|
then
|
|
|
|
set -o emacs
|
|
|
|
fi
|
2024-03-22 16:08:05 +00:00
|
|
|
trap clear EXIT
|
2022-11-28 22:45:54 +00:00
|
|
|
usermotd
|
|
|
|
;;
|
2022-09-16 07:42:02 +00:00
|
|
|
*)
|
2022-11-28 22:45:54 +00:00
|
|
|
# Shell is not interactive.
|
|
|
|
return 1
|
|
|
|
;;
|
2022-09-16 07:42:02 +00:00
|
|
|
esac
|