1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

rbenv: fix current_gemset

Fixes #8925
Co-authored-by: Josh Goodall <inopinatus@inopinatus.org>
This commit is contained in:
Marc Cornellà 2020-07-30 18:20:30 +02:00
parent 9521837240
commit 8755c5f101

View file

@ -34,7 +34,7 @@ if [[ $FOUND_RBENV -eq 1 ]]; then
} }
function current_gemset() { 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() { function gems() {