mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Merged /lib/git.zsh and /lib/rvm.zsh into /plugins/.
This commit is contained in:
parent
1e9b718af1
commit
3df2fe787e
4 changed files with 89 additions and 88 deletions
|
|
@ -1,3 +1,11 @@
|
|||
# Get the name of the current branch.
|
||||
function rvm_prompt_info() {
|
||||
local ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null)
|
||||
if [[ -n "$ruby_version" ]]; then
|
||||
echo "($ruby_version)"
|
||||
fi
|
||||
}
|
||||
|
||||
alias rubies='rvm list rubies'
|
||||
alias gemsets='rvm gemset list'
|
||||
|
||||
|
|
@ -46,3 +54,4 @@ function gems {
|
|||
-Ee "s/$current_ruby@global/$fg[yellow]&$reset_color/g" \
|
||||
-Ee "s/$current_ruby$current_gemset$/$fg[green]&$reset_color/g"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue