postmodern / chruby

Changes the current Ruby
MIT License
2.87k stars 190 forks source link

Function-based analog of #379 - Make chruby_reset undo only the changes made by chruby_use #380

Closed tomeon closed 6 years ago

tomeon commented 7 years ago

Related to #379. Instead of introducing a global associative array for tracking changes to the shell environment, uses the chruby_setup function in both chruby_use and chruby_reset to help provide a consistent "view" of the original and desired (post-chruby_use) shell environments.