Ubuntu: Gnome terminal is not running source .bashrc?



Question:

I have a clean installation of Ubuntu 12 and I installed bashmarks, a utility to have favorites folders on the terminal.

One of the steps is to include source ~/.local/bin/bashmarks.sh at the end of ~/.bashrc, so each time you open a terminal it loads bashmarks.

If I run source manually it starts working, but when I open a terminal is not sourced automatically.


Solution:1

Sounds like a double to this question. It might be that the bash in your terminal is a login shell what means .bashrc is not sourced.


Solution:2

The problem may be that the tilde expansion is not working at the time that .bashrc is being run. It may work if you either put the full directory, or use $HOME instead of the tilde.

Looking at my system-supplied .profile, they run .bashrc, if available, by using this command: "$HOME/.bashrc"

Perhaps you should try a similar statement:

"$HOME/.local/bin/bashmarks.sh"


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »