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:


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


ldconfig -v

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