Skip to content

Shell startup files

Yiding Jia edited this page Aug 4, 2015 · 4 revisions

zsh

Condition File
Always /etc/zshenv
~/.zshenv
Login /etc/zprofile
~/.zprofile
Interactive /etc/.zshrc
~/.zshrc
Login /etc/zlogin
~/.zlogin

bash

Condition First of
Interactive /etc/profile
~/.bash_profile ~/.bash_login ~/.profile
Interactive and (non-login or ssh) ~/.bashrc
Invoked as sh /etc/profile
~/.profile
Clone this wiki locally