Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's outright wrong since it forgets ~/.bash_login

The startup files are mostly comprehensible if you understand the following two oddities:

* Some pseudo-terminal programs always start the shell as interactive; other pseudo-terminal programs always start the shell as non-interactive.

* Shells started from SSH are different than all other shells, regardless of interactivity.

* Shells other than bash are broken-by-design and really should not be used if you have any choice, but in the real world you do have to know at least a little about how to deal with their brokenness.

I have a much saner script here: https://gist.github.com/o11c/03a4b321220395b97dadc3f1ca740db...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: