# Bashrc Configuration

## bashrc locations

If one or more bashrc files exist in the following locations, they will be sourced before the ebuild is executed in the following order:

1. `/etc/portage/bashrc`

2. `/etc/portage/env/${CATEGORY}/${PN}`

3. `/etc/portage/env/${CATEGORY}/${PN}:${SLOT}`

4. `/etc/portage/env/${CATEGORY}/${P}`

5. `/etc/portage/env/${CATEGORY}/${PF}`

## Ebuild Phase Hooks

A phase hook function name begins with a pre_ or post_ prefix to indicate that it will be called before or after one of the ebuild phases. The prefix is followed by the name of the ebuild function that the hook will be associated with. For example, a hook named pre_src_compile will be called before src_compile, and a hook named post_src_compile will be called after src_compile.