PDA

View Full Version : [gnome] .bashrc mechanism & gnome-terminal



le_phoceen
February 12th, 2011, 09:53 PM
Hi,

in order to have the gnome-terminal opened every time with a bigger size that the default one, I put that alias in my .bashrc file :


alias gnome-terminal='gnome-terminal --geometry=130x25'
Then I reboot my computer and when I launch the gnome-terminal from the menu, it still has its more little size. But when I type gnome-terminal in this terminal, I correctly get my big terminal. It seems to me that the .bashrc file is only taken into account when the terminal is launched. Is that true ?

Rocket2DMn
February 12th, 2011, 10:05 PM
Even though the command executing from the menu is "gnome-terminal" rather than the full path call (i.e. /usr/bin/gnome-terminal), it is not being executed from a bash shell. When you open a terminal, your default shell is bash, so .bashrc is sourced. Your alias only works from the bash shell which is not active in your gnome session.

You can either edit the menu entry, or create a panel shortcut with your alias as the command - "gnome-terminal --geometry=130x25".

linuxwonder
February 20th, 2011, 03:33 PM
Hey Rocket2DMn: Just the thing i have been looking for. Thanks!:P