Is there a "PATH" equivalent in Kubunto?
alexander.v.smirnov at gmail.com
Tue Mar 25 09:45:38 UTC 2008
John L Fjellstad wrote:
> Alexander Smirnov <alexander.v.smirnov at gmail.com> writes:
>> Hmmmm... i always thought that ~/.profile is ksh-specific startup file
>> Similar file for bash shell is ~/.bash_profile
> According to the manual, bash will invoke the following files in this
> /etc/profile, ~/.bash_profile, ~/.bash_login, ~/profile
Yes, you are right.
reading manuals is a damn useful!
quote from bash manual:
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. [...]
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.
So, i think it is reasonable to place PATH to ~/.bashrc
More information about the kubuntu-users