workstation/roles/home-cli/files/shrc

20 lines
303 B
Bash

#!/bin/sh
if [ -r "$HOME/.profile" ]
then
. "$HOME/.profile"
fi
case "$-" in
*i*)
# Shell is interactive.
if [ -r /etc/profile.d/bash_completion.sh ]
then
. /etc/profile.d/bash_completion.sh
fi
usermotd
;;
*)
# Shell is not interactive.
return 1
;;
esac