Supondo que seja bash, presumo que use os arquivos normais de perfil em seu diretório inicial e o /etc . Veja esta questão cuja resposta aponta principalmente para a seção de invocação de man bash "
When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login
option, it first reads and executes commands from the file /etc/profile, if that file exists. After
reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and
reads and executes commands from the first one that exists and is readable. The --noprofile option
may be used when the shell is started to inhibit this behavior.
Atualização:
Então você está usando o zsh:
man zsh section ARQUIVOS STARTUP / SHUTDOWN. Basicamente, ele usará os arquivos .zsomething mencionados e procurará $ZDOTDIR , se não estiver definido como $HOME . Os arquivos em resumo:
$ZDOTDIR/.zshenv
$ZDOTDIR/.zprofile
$ZDOTDIR/.zshrc
$ZDOTDIR/.zlogin
$ZDOTDIR/.zlogout
${TMPPREFIX}* (default is /tmp/zsh*)
/etc/zsh/zshenv
/etc/zsh/zprofile
/etc/zsh/zshrc
/etc/zsh/zlogin
/etc/zsh/zlogout