>From the bash(1) man page, under the INVOCATION section: When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.
When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it exists. When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, if these files exist. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of /etc/bash.bashrc and ~/.bashrc. Note that using the -c argument to bash means it's not an interactive shell. In short, according to the clear and explicit documentation on the bash program, the .bashrc file will not be read under the circumstances in which you're running it. For additional discussion on how bash handles its startup files, see [1] and especially [2]. If you want a command line to stick in your shortcut that works, try gnome-terminal -t "Python 2" -x bash -i -c python2 Since misunderstandings about how to use the bash shell is really not a bug in Unity, I am reclosing this bug. [1] http://askubuntu.com/questions/121073/why-bash-profile-is-not-getting-sourced-when-opening-a-terminal [2] http://superuser.com/questions/183870/difference-between-bashrc-and-bash-profile ** Changed in: unity (Ubuntu) Status: New => Invalid ** Changed in: unity Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1102727 Title: Shortcut launcher make bash to not read .bashrc To manage notifications about this bug go to: https://bugs.launchpad.net/unity/+bug/1102727/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs