How does RVM detect when you've changed directories?
问题 One thing that RVM can do is notice when you've changed directories, look for an .rvmrc , and change your current Ruby version and gemset according to that file's contents. It makes this change as soon as you change into that directory and outputs a message accordingly. How does it detect a change in the current working directory? I can imagine an extremely crude way of doing this: run a daemon that runs as the current user and keeps checking the results of pwd . But I'm sure that's not what