Answer by vaab for Why ~/.bash_profile is not getting sourced when opening a...
TL;DR In classical recommended ubuntu setup, ~/.bash_profile gets evaluated only in specific occasions. And it makes sense. Put your stuff in ~/.bashrc, it'll get evaluated everytime. Ok, I want to...
View ArticleAnswer by kisoku for Why ~/.bash_profile is not getting sourced when opening...
I think it is worth mentioning that you can change the default of gnome-terminal to use a login shell (ie. bash -l) by editing the profile preferences. go to Edit -> Profile Preferences -> Title...
View ArticleAnswer by lgarzo for Why ~/.bash_profile is not getting sourced when opening...
You can check if your Bash shell is started as a login-shell by running: shopt login_shell If the reply is off you are not running a login shell. Read the Bash manual's invocation section on how Bash...
View ArticleAnswer by Florian Diesch for Why ~/.bash_profile is not getting sourced when...
If you open a terminal or run su the shell is not executed as a login shell but as a normal interactive shell. So it reads ~/.bashrc but not ~/.bash_profile. You can run su with the -l option to make...
View ArticleAnswer by geirha for Why ~/.bash_profile is not getting sourced when opening...
~/.bash_profile is only sourced by bash when started in interactive login mode. That is typically only when you login at the console (Ctrl+Alt+F1..F6), or connecting via ssh. When you log in...
View ArticleWhy ~/.bash_profile is not getting sourced when opening a terminal?
Problem I have an Ubuntu 11.04 Virtual Machine and I wanted to set up my Java development environment. I did as follows sudo apt-get install openjdk-6-jdk Added the following entries to...
View ArticleAnswer by Ilaiyaa... for Why ~/.bash_profile is not getting sourced when...
When you do sudo su the shell is not executed, instead of that try with sudo su - this will load ~/.bash_profile as source by default.
View ArticleAnswer by Markus René Einicher for Why ~/.bash_profile is not getting sourced...
They want you to put it in ~/.bash_aliases nowin ~/.bashrc there is this code pointing it out:# Alias definitions.# You may want to put all your additions into a separate file like# ~/.bash_aliases,...
View Article
More Pages to Explore .....