3

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

vfclists
  • 1,949

1 Answers1

6

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.

Radu Rădeanu
  • 174,089
  • 51
  • 332
  • 407