From 98f45695dbe092261f9600d7cd0863fa0b1da556 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Fri, 25 Jan 2013 11:50:37 -0600 Subject: [PATCH] Suppress shell warnings when hashing is disabled by `set +h` --- libexec/rbenv-sh-rehash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rbenv-sh-rehash b/libexec/rbenv-sh-rehash index 9cc75265..7548861b 100755 --- a/libexec/rbenv-sh-rehash +++ b/libexec/rbenv-sh-rehash @@ -10,4 +10,4 @@ fi # When rbenv shell integration is enabled, delegate to rbenv-rehash, # then tell the shell to empty its command lookup cache. rbenv-rehash -echo "hash -r" +echo "hash -r 2>/dev/null || true"