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:
committed by
Mislav Marohnić
parent
059bb2c151
commit
d061cb4651
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user