Zugschlus' Shell Startup Magic

.bashrc

My [http://people.debian.org/~zugschlus/wiki.debian.net/Zg2ShellStartup/bashrc .bashrc] file mainly sets environment variables, defines aliases and shell functions.

Noteworthy features include:

.bash_profile

My [http://people.debian.org/~zugschlus/wiki.debian.net/Zg2ShellStartup/.bash_profile .bash_profile] file sources some other startup files and prints some system operating data.

Noteworthy features include:

.xsession-local

This file is not strictly a shell startup file, but I'll document it here as well since it does things quite similiar to the shell startup files.

When logging in to an X session, no login shell is invoked, thus preventing some initialization from happening. To avoid this issue, /etc/X11/Xsession.d/60xfree86-common_user-xsession-local (See [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=252592 #252592]) invokes ~.xsession-local, which in my environment adds ~.my/bin to the PATH and sources ~.bash_initshare, as my ~.bash_profile does as well.

.bash_initshared

As mentioned before, [~.bash_initshared http:''/people.debian.org/~zugschlus/wiki.debian.net/Zg2ShellStartup/.bash_initshared] is invoked both by ~.bash_profile and ~.xsession-local, and is thus the place for init stuff that should be present both in console/ssh logins and in X sessions.

Noteworthy functions include:

~/.ssh