mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
[chruby] use one line assign to local
to match style with rest of the file
This commit is contained in:
parent
e91091acdb
commit
53526db979
1 changed files with 1 additions and 2 deletions
|
|
@ -81,8 +81,7 @@ function ensure_chruby() {
|
|||
}
|
||||
|
||||
function current_ruby() {
|
||||
local _ruby
|
||||
_ruby="$(chruby |grep \* |tr -d '* ')"
|
||||
local _ruby="$(chruby |grep \* |tr -d '* ')"
|
||||
if [[ $(chruby |grep -c \*) -eq 1 ]]; then
|
||||
echo ${_ruby}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue