Skip to content

Commit

Permalink
Fix rbenv shell system
Browse files Browse the repository at this point in the history
[GitHub #32]
  • Loading branch information
ccmywish committed Sep 1, 2024
1 parent 20e096a commit dfc0e16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libexec/rbenv-shell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ function set_this_shell_version($version) {

$version = auto_fix_version_for_installed $version

# if already set
if ($env:RBENV_VERSION) {
if ($env:RBENV_VERSION) { # If already set
unset_this_shell_version
set_this_shell_version($version)
} else {
$env:RBENV_VERSION = $version
$env:PATH = "$env:RBENV_ROOT\$version\bin;" + $env:PATH
$env:PATH = (get_bin_path_for_version($version)) + ";" + $env:PATH
}
}

Expand Down

0 comments on commit dfc0e16

Please sign in to comment.