Re: How to extend the PATH environment variable in Gnome Shell on Wayland



@Mattias,

Thanks for taking the time to answer me. Unfortunatly, it does not work, I have this:

λ › cat ~/.config/environment.d/80-ruby.conf
PATH=/home/cedlemo/.gem/ruby/2.5.0/bin:$PATH

regards

Cédric Le Moigne

On 19/06/2018 11:55, mattias jc bengtsson gmail com wrote:
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



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