Execute script in new gnome-terminal loading bashrc
0
votes
2
answers
3048
views
I have a script in a gnome-terminal shell and I would like to open a new terminal, load the bashrc configuration, execute a new script and avoid the closure of the new terminal window.
I have tried to execute this commands:
gnome-terminal -x bash
the script above open a new shell and loads bashrc, but I don't know how to execute a script automatically.
gnome-terminal -x ./new_script.sh
the script above open a new shell and execute the script but doesn't load bashrc and close the window.
----------
The result that I would like to obtain is to feel like opening a new terminal as clicking the term icon but execute a script after the bashrc setup.
Asked by Cyr
(101 rep)
Jan 31, 2017, 11:05 AM
Last activity: May 16, 2025, 11:05 AM
Last activity: May 16, 2025, 11:05 AM