[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debianly Correct place to add ~/bin to $PATH ?



On 20131210_175158, Tixy wrote:
> On Mon, 2013-12-09 at 12:15 -0700, Paul E Condon wrote:
> > I've just done a fresh netinst of Wheezy and want to proceed with my
> > personal configuring in a way that is not fighting with the Debian
> > view of how things should be done. I've used Debian since Potato, I
> > think, but have always hacked things until they seemed to be
> > working. Now, I want to try to do things in the way the developers had
> > in mind when they built the install CD images.
> > 
> > I see the file ~/.profile . It contains code that tests for the
> > existence of ~/bin/ and adds it to $PATH , if it exists.  But it
> > doesn't 'work'. After I have created my ~/bin/.  and filled it with
> > some scripts, and rebooted, there is still no mention of ~/bin/ in
> > $PATH . Why? When does ~/.profile actually get invoked?
> 
> I don't know if this is 'the correct way' but what I do is create the
> file ~/.xsessionrc to invoke ~/.profile like:
> 
> . /home/tixy/.profile
> 

Thanks. I had been told about ~/.xsessionrc , but in a context where it seemed
that the file should already exist, and since I didn't have such a file, I
was confused as to what to do. Now I am emboldened to actually create my own
instance. Some things in programming can be quite magical. Some demon might
be watching user hidden files and do nasty things if a new file suddenly
appears without proper authorizaion. :-( 

> I don't know where I picked that method up from originally, it's just in
> my notes of the steps for installing Debian on a new machine.

It must be in some man page. You maybe learned it from someone else as I am
learning from you. 

Thanks

-- 
Paul E Condon           
pecondon@mesanetworks.net


Reply to: