Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open gnome-terminal without sourcing .bashrc

Since my .bashrc contains a lot of aliases, variables and lot of other stuff that changes the behavior of bash, from time to time I want to run gnome-terminal without sourcing it. I wonder if there's some easy way how to do this without the need to temporarily rename .bashrc or delete its contents.

like image 851
user2044638 Avatar asked Oct 27 '25 20:10

user2044638


1 Answers

You can run bash without sourcing .bashrc:

bash --norc

Then it is just a matter of creating a gnome-terminal profile which runs that bash command, rather than the default.

like image 89
chepner Avatar answered Oct 30 '25 12:10

chepner