# Make sure the shell is interactive case $- in *i*) ;; *) return ;; esac # Basic PS1 for POSIX shell; if we're using something more advanced, something # in ~/.shrc.d should overrule this. Does every POSIX shell support these? dash # does, at least. PS1=$(printf '%s@%s$ ' "$(whoami)" "$(hostname -s)") # Load all the POSIX-compatible functions from ~/.shrc.d; more advanced shells # like bash will have their own functions for sh in "$HOME"/.shrc.d/*.sh ; do [ -e "$sh" ] && . "$sh" done unset -v sh