Skip to content

Shell startup files

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

zsh

Order Condition File
1 Always /etc/zshenv
2 ~/.zshenv
3 Login /etc/zprofile
4 ~/.zprofile
5 Interactive /etc/.zshrc
6 ~/.zshrc
7 Login /etc/zlogin
8 ~/.zlogin

bash

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