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?