From d1bfeee33495a4e0dd6a03d9189bba9fb5d3ca3f Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 26 Jan 2012 20:23:31 -0200 Subject: [PATCH] Add /usr/lib/rbenv/hooks to hook search path This will help with the packaging of rbenv plugin that contain hooks in Debian. --- libexec/rbenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rbenv b/libexec/rbenv index 5fe84333..b0470f2f 100755 --- a/libexec/rbenv +++ b/libexec/rbenv @@ -48,7 +48,7 @@ for plugin_bin in "${RBENV_ROOT}/plugins/"*/bin; do done export PATH="${bin_path}:${PATH}" -hook_path="${RBENV_HOOK_PATH}:${RBENV_ROOT}/rbenv.d:/usr/local/etc/rbenv.d:/etc/rbenv.d" +hook_path="${RBENV_HOOK_PATH}:${RBENV_ROOT}/rbenv.d:/usr/local/etc/rbenv.d:/etc/rbenv.d:/usr/lib/rbenv/hooks" for plugin_hook in "${RBENV_ROOT}/plugins/"*/etc/rbenv.d; do hook_path="${hook_path}:${plugin_hook}" done