Skip to content

Commit

Permalink
rbenv: fix current_gemset
Browse files Browse the repository at this point in the history
Fixes ohmyzsh#8925
Co-authored-by: Josh Goodall <inopinatus@inopinatus.org>
  • Loading branch information
mcornella committed Jul 30, 2020
1 parent 9521837 commit 8755c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/rbenv/rbenv.plugin.zsh
Expand Up @@ -34,7 +34,7 @@ if [[ $FOUND_RBENV -eq 1 ]]; then
}

function current_gemset() {
echo "$(rbenv gemset active 2>/dev/null | sed -e ":a" -e '$ s/\n/+/gp;N;b a' | head -n1)"
echo "$(rbenv gemset active 2>/dev/null)" | tr ' ' '+'
}

function gems() {
Expand Down

0 comments on commit 8755c5f

Please sign in to comment.