Stop manually sourcing your bashrc every time you change an alias

Environment & Shell Customization (Aliases/Functions/.Bashrc)

Stop manually sourcing your bashrc every time you change an alias

🧩 The Challenge

You finally decide to clean up your messy bashrc and add a few useful aliases, only to realize your current shell session still has no clue those new commands even exist. Most of us just restart the terminal or close the tab, which is a massive waste of time.

💡 The Fix

Just point your shell at the config file to refresh everything instantly without nuking your current session. It saves you from having to re-authenticate or lose your current working directory.

alias reload='. ~/.bashrc'

⚙️ Why It Works

Adding this alias creates a shorthand that runs the dot command to re-read your shell configuration into the current process. By using this, you get the updated environment variables and shortcuts immediately after you save your text editor.

🚀 Pro-Tip: Use the dot operator instead of source; it is POSIX-compliant and works on pretty much every shell you will ever touch.

Linux Tips & Tricks | © ngelinux.com | 10/26/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted