# Error setting OPENMC\_CROSS\_SECTIONS as environment variable

**URL:** <https://openmc.discourse.group/t/error-setting-openmc-cross-sections-as-environment-variable/1293>\
**Category:** User Support\
**Created:** [July 4, 2021, 3:35pm UTC](https://openmc.discourse.group/t/error-setting-openmc-cross-sections-as-environment-variable/1293 "2021-07-04T15:35:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fsabab](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/fsabab/32/1374_2.png) [@fsabab](https://openmc.discourse.group/u/fsabab)\
**Post date:** [July 4, 2021, 3:35pm UTC](https://openmc.discourse.group/t/error-setting-openmc-cross-sections-as-environment-variable/1293/1 "2021-07-04T15:35:01Z")

</div>

Hi,  
I was trying to setup OPENMC\_CROSS\_SECTIONS as environment variable by editing the .bashrc file in KALI LINUX.  
Now, when I used the  
echo $OPENMC\_CROSS\_SECTIONS  
command in the terminal after saving the bashrc file, it doesn’t display the path of the cross-section.  
I tried to use the $printenv command to list all the environment variables but OPENMC\_CROSS\_SECTIONS was missing from that list. Any solution on how to deal with this?  
Thank you!

---

<div class="post-metadata">

**Author:** ![andrewjohnson](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@andrewjohnson](https://openmc.discourse.group/u/andrewjohnson)\
**Post date:** [July 5, 2021, 5:19pm UTC](https://openmc.discourse.group/t/error-setting-openmc-cross-sections-as-environment-variable/1293/2 "2021-07-05T17:19:14Z")

</div>

You need to either exit your terminal and re-open, or `source` your `~/.bashrc` file in your current session

---

<div class="post-metadata">

**Author:** ![fsabab](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/fsabab/32/1374_2.png) [@fsabab](https://openmc.discourse.group/u/fsabab)\
**Post date:** [July 5, 2021, 5:48pm UTC](https://openmc.discourse.group/t/error-setting-openmc-cross-sections-as-environment-variable/1293/3 "2021-07-05T17:48:00Z")

</div>

Thank you @andrewjohnson. I actually tried exiting the terminal and restarted the computer. The problem still persists.

---

<div class="post-metadata">

**Author:** ![fsabab](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/fsabab/32/1374_2.png) [@fsabab](https://openmc.discourse.group/u/fsabab)\
**Post date:** [July 5, 2021, 7:04pm UTC](https://openmc.discourse.group/t/error-setting-openmc-cross-sections-as-environment-variable/1293/4 "2021-07-05T19:04:03Z")

</div>

Thanks to @Pranto.  
The recent versions of Kali use .zshrc as the login profile. Adding the environmental variable path to that solved the whole thing.
