Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
8755c5f1
Commit
8755c5f1
authored
Jul 30, 2020
by
Marc Cornellà
Browse files
rbenv: fix current_gemset
Fixes #8925 Co-authored-by:
Josh Goodall
<
inopinatus@inopinatus.org
>
parent
95218372
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/rbenv/rbenv.plugin.zsh
View file @
8755c5f1
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment