From: znavko@disroot.org
To: "help-guix" <help-guix@gnu.org>
Subject: How to make bash sees binaries from /root/.local/bin ?
Date: Wed, 06 May 2020 11:01:32 +0000 [thread overview]
Message-ID: <f5bf81a8b0effb8668576f739a88ba52@disroot.org> (raw)
Hello! Fortunately, I've installed protonvpn client (written in python3) to my system.
But it does not run with 'protonvpn' command, but only with full path '/root/.local/bin/protonvpn'.
As I know, it happens because PATH variable does not contain /root/.local/bin
and bash does not seek there.
Sorry, I want Guix way advice concerning how to add the directory '/root/.local/bin/'
to my $PATH for user 'root' permanently, please?
# echo $SHELL
/gnu/store/n1c9jiv2njnvdfz58v71fvzq0hkgivz1-bash-5.0.7/bin/bash
# echo $PATH
/root/.guix-profile/bin:/root/.guix-profile/bin:/root/.guix-profile/sbin:/run/setuid-programs:/root/.config/guix/current/bin:/root/.guix-profile/bin:/root/.guix-profile/sbin:/run/current-system/profile/bin:/run/current-system/profile/sbin
# cat /root/.bash_profile
# Honor per-interactive-shell startup file
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
GUIX_PROFILE="/root/.guix-profile" . "/run/current-system/profile/etc/profile"
GUIX_PROFILE="/root/.guix-profile" . "$GUIX_PROFILE/etc/profile"
# ls /root/.local/bin
chardetect pip pip3 pip3.7 protonvpn
# protonvpn
-bash: protonvpn: command not found
next reply other threads:[~2020-05-06 11:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 11:01 znavko [this message]
2020-05-06 11:26 ` How to make bash sees binaries from /root/.local/bin ? Vincent Legoll
2020-05-06 15:04 ` znavko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f5bf81a8b0effb8668576f739a88ba52@disroot.org \
--to=znavko@disroot.org \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).