When I open Konsole the settings in .profile are not executed, and it means the ~/bin is not added to the PATH.
Is there a way to get Konsole to do that?
PS. Is there a way to tell whether Konsole is running bash or dash
When I open Konsole the settings in .profile are not executed, and it means the ~/bin is not added to the PATH.
Is there a way to get Konsole to do that?
PS. Is there a way to tell whether Konsole is running bash or dash
These files: .profile or .bash_profile are executed by the command interpreter only for login shells. See what is Difference between Login Shell and Non-Login Shell?
To execute, for example, .profile file in your konsole after you open it, run the following command:
source ~/.profile
or:
. ~/.profile
These commands are equivalent and they source/execute the code from inside of ~/.profile file.
~/.profilein your~/.bashrcfile will be wrong, because~/.profileis sourcing~/.bashrc. But, when you log in graphically,~/.profilewill be specifically sourced, so any change that you make in this file will take effect next time when you log in. Only if you don't want to logging out and in again you have to runsource ~/.profileevery time when you open Konsole. – Radu Rădeanu Nov 13 '13 at 10:09~/.profilemay be executed for the graphical shell the settings in it don't get passed on to new instances ofKonsoleso I will be to place those commands directly in.bashrcthen. – vfclists Nov 13 '13 at 11:29/bin/bash -l
– SSJ_GZ Aug 10 '14 at 07:27