Autocreate ~/.rbenv skeleton in rbenv-init

This commit is contained in:
Sam Stephenson 2011-08-04 00:48:37 -05:00
parent 4ee92fca43
commit f84dc27c58

View file

@ -50,6 +50,9 @@ if [ -z "$print" ]; then
exit 1 exit 1
fi fi
mkdir -p "${HOME}/.rbenv/{shims,versions}"
[ -e "${HOME}/.rbenv/default" ] || echo system > "${HOME}/.rbenv/default"
echo 'export PATH="${HOME}/.rbenv/shims:${PATH}"' echo 'export PATH="${HOME}/.rbenv/shims:${PATH}"'
if [ "$shell" = "bash" ]; then if [ "$shell" = "bash" ]; then