[Bug 448337] Re: .bashrc is not executed when terminal is opened through nautilus-open-terminal
Christian Neumair
cneumair at gnome.org
Fri Oct 16 22:12:09 UTC 2009
I am not a UNIX shell expert, but there seem to be two various ways of
invoking it: It may be interactive (bash -i), a login shell (bash -l) or
both of it (or maybe also none?). This influences the files that are
sourced upon login.
In my Ubuntu karmic distro, ~/.bashrc just sources ~/.bash_profile, so
the very same user-set aliases are used for interactive and login mode.
You may fix your issue by adding
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
to ~/.profile. Because I do not understand the concept of interactive
and login shells, I'll let somebody competent judge what mode is best
here. If I remember correctly, we pass the "-l" (login shell) parameter
to bash since we use it for ssh. Maybe it makes sense to also pass "-i",
or maybe use the login shell only for remote ssh locations, and the
interactive shell for local ones?
--
.bashrc is not executed when terminal is opened through nautilus-open-terminal
https://bugs.launchpad.net/bugs/448337
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list