summarylogtreecommitdiffstats
path: root/set_paths.sh
diff options
context:
space:
mode:
Diffstat (limited to 'set_paths.sh')
-rw-r--r--set_paths.sh20
1 files changed, 4 insertions, 16 deletions
diff --git a/set_paths.sh b/set_paths.sh
index da0799ae29bd..3a8327895ccf 100644
--- a/set_paths.sh
+++ b/set_paths.sh
@@ -1,3 +1,5 @@
+# set for current session
+
# get variables
arch=$(uname -m)
python_version=$(python -V 2>&1 | cut -d' ' -f2 | cut -d'.' -f1-2)
@@ -15,19 +17,5 @@ eval $export_pythonpath
eval $export_ld_library_path
eval $export_openmc_cross_sections
-# Check and add to bashrc if not exists
-if ! grep -qF "$export_path" ~/.bashrc; then
- echo "$export_path" >> ~/.bashrc
-fi
-
-if ! grep -qF "$export_pythonpath" ~/.bashrc; then
- echo "$export_pythonpath" >> ~/.bashrc
-fi
-
-if ! grep -qF "$export_ld_library_path" ~/.bashrc; then
- echo "$export_ld_library_path" >> ~/.bashrc
-fi
-
-if ! grep -qF "$export_openmc_cross_sections" ~/.bashrc; then
- echo "$export_openmc_cross_sections" >> ~/.bashrc
-fi \ No newline at end of file
+# set for future sessions
+cp openmc.sh /etc/profile.d \ No newline at end of file