add script-path to PATH?

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
pakikje
Posts: 124
Joined: Fri Nov 11, 2016 3:04 pm

add script-path to PATH?

Post by pakikje »

Hello y'all,

NOOB-question: how do i add my script-path (~/script) to the PATH-enviroment? I understand that i can add:

PATH=$PATH:~/script

to .bashrc but where? (i tried adding it just before the line with "/DietPi/dietpi/login" but that didn't do the trick..
pakikje
Posts: 124
Joined: Fri Nov 11, 2016 3:04 pm

Re: add script-path to PATH?

Post by pakikje »

this seems to work:

(command line)

Code: Select all

export PATH=$PATH:~/script/
(but will be gone after a reboot, i guess)
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: add script-path to PATH?

Post by k-plan »

pakikje wrote: to .bashrc but where? (i tried adding it just before the line with "/DietPi/dietpi/login" but that didn't do the trick..
Add to:

Code: Select all

cat /etc/bash.bashrc
pakikje wrote:(but will be gone after a reboot, i guess)

Code: Select all

echo $LD_LIBRARY_PATH

ldconfig -v
But keep a eye on it, if you get in hassle:

https://github.com/Fourdee/DietPi/issues/1329

https://github.com/Fourdee/DietPi/issues/1360
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
Post Reply