source ~/.bashrc in bash script code example Example 1: source bashrc source ~/.bashrc Example 2: source .bashrc source ~/.bashrc or . ~/.bashrc