Unset auxiliary env variables
[idea/community.git] / plugins / terminal / resources / jediterm-bash.in
index 74dd6fdff375a9141b0a5ab546b7ead0d663d61e..cc1cdbc8a7ce08dc90eb70c053c7b0c82ebcea46 100644 (file)
@@ -33,6 +33,7 @@ function load_interactive_configs {
 
 if [ -n $LOGIN_SHELL ]; then
   load_login_configs
+  unset LOGIN_SHELL
 fi
 
 load_interactive_configs
@@ -56,9 +57,11 @@ trap "generate_command_executed_sequence" DEBUG
 if [ -n "$JEDITERM_USER_RCFILE" ]
 then
   source $JEDITERM_USER_RCFILE
+  unset JEDITERM_USER_RCFILE
 fi
 
 if [ -n "$JEDITERM_SOURCE" ]
 then
   source $JEDITERM_SOURCE
+  unset JEDITERM_SOURCE
 fi