mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-24 23:00:09 +00:00
fixed rvm warning
This commit is contained in:
parent
99c9dbed47
commit
aee8877988
1 changed files with 6 additions and 5 deletions
|
@ -32,11 +32,12 @@ function check_git_prompt_info() {
|
||||||
|
|
||||||
# Determine if we are using a gemset.
|
# Determine if we are using a gemset.
|
||||||
function rvm_gemset() {
|
function rvm_gemset() {
|
||||||
|
if hash rvm 2>/dev/null; then
|
||||||
GEMSET=`rvm gemset list | grep '=>' | cut -b4-`
|
GEMSET=`rvm gemset list | grep '=>' | cut -b4-`
|
||||||
if [[ -n $GEMSET ]]; then
|
if [[ -n $GEMSET ]]; then
|
||||||
echo "%{$fg[yellow]%}$GEMSET%{$reset_color%}|"
|
echo "%{$fg[yellow]%}$GEMSET%{$reset_color%}|"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Determine the time since last commit. If branch is clean,
|
# Determine the time since last commit. If branch is clean,
|
||||||
|
|
Loading…
Reference in a new issue