# add script-path to PATH?

**URL:** https://dietpi.com/forum/t/add-script-path-to-path/1799
**Category:** Troubleshooting
**Created:** [3 January 2018 14:22 UTC](https://dietpi.com/forum/t/add-script-path-to-path/1799 "2018-01-03T14:22:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pakikje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pakikje](https://dietpi.com/forum/u/pakikje)
#### Post date: [3 January 2018 14:22 UTC](https://dietpi.com/forum/t/add-script-path-to-path/1799/1 "2018-01-03T14:22:31Z")

</div>

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…

---

<div class="post-metadata">

### Author: ![pakikje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pakikje](https://dietpi.com/forum/u/pakikje)
#### Post date: [3 January 2018 14:38 UTC](https://dietpi.com/forum/t/add-script-path-to-path/1799/2 "2018-01-03T14:38:01Z")

</div>

this seems to work:

(command line)

```nohighlight
export PATH=$PATH:~/script/

```

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

---

<div class="post-metadata">

### Author: ![k-plan](https://dietpi.com/forum/user_avatar/dietpi.com/k-plan/32/12_2.png) [@k-plan](https://dietpi.com/forum/u/k-plan)
#### Post date: [4 January 2018 17:41 UTC](https://dietpi.com/forum/t/add-script-path-to-path/1799/3 "2018-01-04T17:41:14Z")

</div>

> [@pakikje](#):
>
> 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:

```plaintext
cat /etc/bash.bashrc

```

> [@pakikje](#):
>
> (but will be gone after a reboot, i guess)

```plaintext
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/1329)

[https://github.com/Fourdee/DietPi/issues/1360](https://github.com/Fourdee/DietPi/issues/1360)
