mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 23:33:45 -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
@@ -51,10 +51,16 @@ OUT
|
||||
[ -z "$line" ] || flunk "did not expect line: $line"
|
||||
}
|
||||
|
||||
@test "posix shell instructions" {
|
||||
run rbenv-init bash
|
||||
assert [ "$status" -eq 1 ]
|
||||
assert_line 'eval "$(rbenv init - bash)"'
|
||||
}
|
||||
|
||||
@test "fish instructions" {
|
||||
run rbenv-init fish
|
||||
assert [ "$status" -eq 1 ]
|
||||
assert_line 'status --is-interactive; and rbenv init - | source'
|
||||
assert_line 'status --is-interactive; and rbenv init - fish | source'
|
||||
}
|
||||
|
||||
@test "option to skip rehash" {
|
||||
|
||||
Reference in New Issue
Block a user