From f6473f29458d60201c47cf65ae7dde465ef0adfc Mon Sep 17 00:00:00 2001 From: Darcy Laycock Date: Sun, 22 Aug 2010 13:51:26 +0800 Subject: [PATCH] Rehash binaries on switch, forcing it to forget seen executables / lookup new path --- scripts/selector | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/selector b/scripts/selector index b7bc328b97..31eeba949e 100755 --- a/scripts/selector +++ b/scripts/selector @@ -338,6 +338,8 @@ __rvm_use() { fi fi + # Rehash executable locations, e.g. to force the shell to recognize new items in the path. + builtin hash -r rvm_hook="after_use" ; source $rvm_scripts_path/hook }