Skip to content

Customize the .bashrc

Stephan Raabe edited this page Jul 22, 2024 · 1 revision

The ML4W Dotfiles are shipped with a .bashrc file. If you want to add your configuration e.g., your personal aliases please create the file .bashrc_custom in your HOME directory.

My .bashrc_custom has the following content:

# -----------------------------------------------------
# Custom Aliases
# -----------------------------------------------------

# DEVELOPMENT
alias dotsync="~/dotfiles-versions/dotfiles/.install/dev/sync.sh dotfiles"

The shipped .bashrc file will source your .bashrc_custom if exists:

# -----------------------------------------------------
# LOAD CUSTOM .bashrc_custom
# -----------------------------------------------------
if [ -f ~/.bashrc_custom ] ;then
    source ~/.bashrc_custom
fi
Clone this wiki locally