diff --git a/my_home/.bashrc b/my_home/.bashrc index 4de4d9b..69be646 100644 --- a/my_home/.bashrc +++ b/my_home/.bashrc @@ -1,7 +1,7 @@ # .bashrc 3/14/2025 -# Interactive shell check (the way Slackware does it) -if shopt -q login_shell; then +# Interactive shell check +if [ -t 0 ]; then /usr/games/fortune echo fi @@ -40,11 +40,6 @@ if [ -d $HOME/perl5 ]; then export PERL_LOCAL_LIB_ROOT="/home/daniel/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}" export PERL_MB_OPT="--install_base \"/home/daniel/perl5\"" export PERL_MM_OPT="INSTALL_BASE=/home/daniel/perl5" - - # For perlbrew - if [ -r $HOME/perl5/perlbrew/etc/bashrc ]; then - . $HOME/perl5/perlbrew/etc/bashrc - fi fi # For Raku/zef diff --git a/my_home/.profile b/my_home/.profile index 7f8faa4..38895e7 100644 --- a/my_home/.profile +++ b/my_home/.profile @@ -38,11 +38,17 @@ export PATH # Configure the shell to load .shrc at startup time. # This will happen for every shell started, not just login shells. -if [ -r $HOME/.${SHELL}rc ]; then - export ENV=$HOME/.shrc -elif [ `basename $SHELL` = 'bash' ] && [ -r $HOME/.bashrc ]; then - . $HOME/.bashrc -fi +case `basename $SHELL` in + sh) + ENV=$HOME/.shrc + ;; + ksh) + ENV=$HOME/.kshrc + ;; + bash) + . $HOME/.bashrc + ;; +esac # Set locale export LANG="en_US.UTF-8"