help-guix
[Top][All Lists]
Advanced

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

How to make bash sees binaries from /root/.local/bin ?


From: znavko
Subject: How to make bash sees binaries from /root/.local/bin ?
Date: Wed, 06 May 2020 11:01:32 +0000

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]