1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 07:13:53 -05:00

Have rbenv init print instructions that hardcode the detected shell

This speeds up subsequent `rbenv init -` executions for the user who
followed these instructions because the shell will no longer have to be
detected each time.
This commit is contained in:
Daniel Hahler
2018-07-13 22:22:17 +02:00
committed by Mislav Marohnić
parent 059bb2c151
commit d061cb4651
2 changed files with 9 additions and 3 deletions

View File

@@ -71,10 +71,10 @@ if [ -z "$print" ]; then
echo
case "$shell" in
fish )
echo 'status --is-interactive; and rbenv init - | source'
echo 'status --is-interactive; and rbenv init - fish | source'
;;
* )
echo 'eval "$(rbenv init -)"'
printf 'eval "$(rbenv init - %s)"\n' "$shell"
;;
esac
echo