~/.shrcenv
# putPut allenvironment myvariables aliaseshere, ande.g.
PATH=$PATH:$HOME/bin
~/.shrc
test environment-f variables"$HOME/.env" && . "$HOME/.env"
# Put interactive shell setup here, e.g.
alias ll='ls -l'
PS1='$PWD$ '
set -o emacs
source ~/.shrc
# and putPut any bash-specific settings here, e.g.
HISTFILE=~/.bash_history
shopt -s extglob
IGNOREEOF=yes
~/.zshenv
# Put any zsh-specific settings for non-interactive and interactive sessions, e.g.
setopt braceexpand
setopt promptsubst
setopt shwordsplit
source ~/.shrc
# and putPut any zsh-specific interactive settings here, e.g.
HISTFILE=~/.zsh_history
bindkey -e
setopt ignoreeof
ENV=$HOME# Interactive sub-shells source .env, unless this is bash or zsh,
# because they already sourced .env in .bashrc or .zshrc.
if test -z "$BASH_VERSION" -a -z "$ZSH_VERSION" || test -n "$BASH_VERSION" -a \( "${BASH##*/}" = "sh" \)
then
if test -f "$HOME"/.env
then
. "$ENV""$HOME"/.env
fi
fi
# The name is confusing, but $ENV is ksh's config file for interactive sessions,
# so it's equivalent to .bashrc or .zshrc.
# Putting this here makes running an interactive ksh from any login shell work.
if test -f "$HOME"/.shrc
then
export ENV="$HOME"/.shrc
fi
# Put any login shell specific commands here, e.g.
ssh-add
stty -ixon