one.bash entry.bash
September 14, 2024 ยท View on GitHub
Bashrc Initialization Process
It will execute scripts in order:
- ~/.profile or ~/.bash_profile
- ~/.bashrc
- bash/entry.bash
- Load exit codes
- Load
$ONE_CONF(Defaults to $HOME/.config/one.bash/one.config.bash) - Load one.config.default.bash
- Reset PATH: bash/path.bash
- Set XDG environment variables: bash/xdg.bash
- If
$ONE_RCis not empty, enter the$ONE_RC, and not execute below steps. - If check_shell failed, enter the
$ONE_BASHRC_FO, and not execute below steps. - Load composure
- Load settings for OS.
- Enable
oneand$ONE_SUBauto-completions. bash/one-complete.bash - Execute
repo_onloadfunction if it defined inone.repo.bashof each repo. - Load enabled modules if
ONE_NO_MODSis false.