add script-path to PATH?

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…

this seems to work:

(command line)

export PATH=$PATH:~/script/

(but will be gone after a reboot, i guess)

Add to:

cat /etc/bash.bashrc





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