mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-06-14 21:51:42 +00:00
Merged lib/git.zsh and lib/rvm.zsh into plugins/.
This commit is contained in:
@ -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'
|
||||
|
||||
@ -42,3 +50,4 @@ function gems {
|
||||
-Ee "s/$current_ruby@global/$fg[yellow]&$reset_color/g" \
|
||||
-Ee "s/$current_ruby$current_gemset$/$fg[green]&$reset_color/g"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user