The way your system behaves with respect to the reading of "dot files" at login time, setting up aliases, setting up environment variables, and so on is all highly dependent on how you actually log in.
D. Spinellis, P. Louridas, and M. Kechagia. Proceedings of the 38th International Conference on Software Engineering, page 748--759. New York, NY, USA, ACM, (2016)
U. Priss. Proceedings of the 19th International Conference on Conceptual Structures (ICCS 2011), volume 6828 of Lecture Notes in Computer Science, page 243-256. Springer, (2011)