Login

Various aspects of login are (will be) explained in this Article

Login shell in Gentoo
The most important job of a login shell in Gentoo is to read, which sets environment variables. See below for the details.

Csh/tcsh users are also recommended to read the following section about bash.

This section describes Gentoo specific matters of login shells. For login shells general in Unix, see the pointer(s) in.

Default: Bash and variants
In Gentoo, the default shell is bash. For many Bourne shell variants, including bash, the content of this section holds.

A login shell runs special configuration file(s), e.g. (and others) for bash. In Gentoo, it reads (= sources) other system-wide configuration files. These configuration files set environment variables, and do some other setups. These settings will be inherited by other shells, say opened in terminal emulators.

Load order of system-wide config files
A (bash) login shell reads:
 * first.
 * It then reads (sources) ,
 * and files under

If the shell is bash, is also sourced. This does not configure Gentoo itself; it rather provides the Gentoo-default of bash look-and-feel.

System wide config files explained

 * Provided by (or alternatives). Other than reading other files, this file doesn't do many jobs.
 * Provided by (or alternatives). Other than reading other files, this file doesn't do many jobs.


 * This file lies at the core of a login shell in Gentoo.
 * It is automatically updated by, generated from files . These files are installed by some packages (or created by config tools like eselect). For example  is provided by.
 * sets environment variables in order that these packages properly work.
 * sets environment variables in order that these packages properly work.


 * (Sorry, dunno. Doesn't seem important.)
 * (Sorry, dunno. Doesn't seem important.)

Csh and variants
(Please someone fill in this section.)

Fish
As stated in the article fish, fish can't load system-wide configuration files mentioned above.