From f84dc27c5807257a6dae8501183d79e6563226f8 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Thu, 4 Aug 2011 00:48:37 -0500 Subject: [PATCH] Autocreate ~/.rbenv skeleton in rbenv-init --- libexec/rbenv-init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libexec/rbenv-init b/libexec/rbenv-init index 43e1339..9569e93 100755 --- a/libexec/rbenv-init +++ b/libexec/rbenv-init @@ -50,6 +50,9 @@ if [ -z "$print" ]; then exit 1 fi +mkdir -p "${HOME}/.rbenv/{shims,versions}" +[ -e "${HOME}/.rbenv/default" ] || echo system > "${HOME}/.rbenv/default" + echo 'export PATH="${HOME}/.rbenv/shims:${PATH}"' if [ "$shell" = "bash" ]; then