Skip to main content

Profile Scripts Overview

Install Doctor's expertly configured and optimized system configuration collection includes masterfully created Bash / ZSH profile scripts. These scripts are seperated into a handful of files that are only imported when necessary.

The default configuration ensures ZSH is the default shell. When combined with the Oh-My-ZSH framework, this gives the user access to advanced auto-completion, type ahead, and predictive features.

A well-optimized Bash configuration is also provided for cases where a simpler terminal shell engine might be more desirable. Bash makes use of the Bash It! framework.

Profile Scripts

The Bash / ZSH entrypoint scripts are stored at ~/.bashrc and ~/.zshrc. Both of these configurations include imports that reference a few different files located in the home/dot_config/shell/ folder. This way, shell initialization code that should be common to both the Bash and ZSH configurations is stored in a single file, reducing duplicate code. Bash-specific and ZSH-specific configuration logic is stored in their respective ~/.*rc files.

The following chart outlines the purpose of the various shared profile setup scripts:

File PathDescription
~/.config/shell/aliases.shStores command aliases / shortcuts
~/.config/shell/exports.shHouses all the environment variables
~/.config/shell/functions.shStored all the functions / more-complicated aliases
~/.config/shell/motd.shIncludes code that invokes a useful, pretty MOTD
~/.config/shell/private.shStores environment variables that are intended to be private (e.g. API keys)
~/.config/shell/profile.shMain profile script that is invoked by ~/.bashrc and ~/.zshrc that includes all of the other scripts as well as some other initialization logic