Hi!

On Mon, 2018-06-18 at 18:47 +0200, cedlemo wrote:
> Hi,
> I want to add some personnal directories to the PATH environment
> variable in order to be able to run my ruby/gtk3 applications via the
> run command prompt (Alt+F2).
> I have this in my ~/.profile and my ~/.bashrc: 
> PATH=/home/cedlemo/.gem/ruby/2.5.0/bin:$PATH 

I use ~/.config/environment.d/ for this (I'm on Fedora). Unfortunately
it is overwritten by the defaults in Bash (regardless of whether I set
any PATH in ~/.bashrc or not. I'm pretty sure you can just source the
files under ~/.config/environment.d/ from ~/.bashrc though but I
haven't bothered testing it.

My PATH variable:

$ cat ~/.config/environment.d/80-path.conf 
# This is overwritten by bash currently
PATH=$HOME/.local/bin:$GEM_HOME/bin:$HOME/.cabal/bin:$PATH

Regards,
Mattias
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list

Reply via email to