workstation/roles/home-cli/files/shrc

26 lines
389 B
Text
Raw Normal View History

2022-09-16 07:46:13 +00:00
#!/bin/sh
if [ -r "$HOME/.profile" ]
then
2022-11-28 22:45:54 +00:00
. "$HOME/.profile"
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-11-28 22:45:54 +00:00
# Shell is not interactive.
return 1
;;
esac