wuub / SublimeREPL

SublimeREPL - run an interpreter inside ST2 (Clojure, CoffeeScript, F#, Groovy, Haskell, Lua, MozRepl, NodeJS, Python, R, Ruby, Scala, shell or configure one yourself)
https://github.com/wuub/SublimeREPL
Other
2.14k stars 312 forks source link

Make getenv_command slightly more robust #587

Open stackedsax opened 3 years ago

stackedsax commented 3 years ago

To help deal with an issue with getenv_command getting messed up with bash_complete or welcome messages in .bashrc/.bash_profile files I added a little conditional as suggested in this StackOverflow conversation:

This may not solve all situations, but it should protect against some of the more common scenarios.