Ubuntu – How to reinitialize a terminal window instead of closing it and starting a new one

bash

When I make some changes to the shell/bash behavior, such as setting up an alias, is there a quick command to reinitialize the terminal window instead of closing and opening a new window?

Best Answer

If you mean reloading your .bashrc configuration then:

source ~/.bashrc

For less typing, you can replace source with a dot: . ~/.bashrc