2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 10276
/ 3 Years ago, mon, november 22, 2021, 1:23:07
I'm trying to launch one command in a new gnome-terminal
window from a shell script, and it seems that my .bashrc
file doesn't get sourced when calling gnome-terminal and executing a command:
gnome-terminal -t "my title" -e vim
But it does when launching gnome-terminal
alone:
gnome-terminal -t "my title"
(for testing purposes, just add a echo "something"
to the end of the .bashrc
)
I also tried explicitly sourcing the .bashrc
before running vim
with no success:
gnome-terminal -t "my title" -x $SHELL -c "source $HOME/.bashrc; vim"
Am I missing something?
More From » gnome-terminal