Re: How to extend the PATH environment variable in Gnome Shell on Wayland
- From: mattias jc bengtsson gmail com
- To: cedlemo <cedlemo gmx com>, gnome-shell-list gnome org
- Subject: Re: How to extend the PATH environment variable in Gnome Shell on Wayland
- Date: Tue, 19 Jun 2018 11:55:43 +0200
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]