Author Topic: No $HOME/.bash_profile script?  (Read 621 times)

Offline nbxmike

  • Newbie
  • *
  • Posts: 3
No $HOME/.bash_profile script?
« on: July 22, 2015, 06:32:19 pm »
I am new to Sparky and LXDE; but, in other Linux distros I am used to a bash start script typically adding $HOME/bin to the path, if $HOME/bin exists.  I like this behavior, should I just create my own $HOME/.bash_profile script or is there a different mechanism in Sparky that I should use?

Thanks

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1456
    • SparkyLinux
Re: No $HOME/.bash_profile script?
« Reply #1 on: July 22, 2015, 08:34:55 pm »
If you would like to run your scripts at startup, use ~HOME/.config/autostart/your.desktop file.
Nothing is easy as it looks.

Offline nbxmike

  • Newbie
  • *
  • Posts: 3
Re: No $HOME/.bash_profile script?
« Reply #2 on: July 24, 2015, 05:18:10 pm »
I just added

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

to the .bashrc script, to get the behavior I want. 

Apparently Gnome will carry through the setting of your initial login in all subsequent bash sessions while LXDE does not (or maybe some other component that is different from Mint Debian Edition and Sparky, there are probably only a few billion differences, I do not claim I understand).  At any rate .bashrc is what is supposed to, and does, execute for non-login shell and when I insert the above into it I get the behavior I expect.