Skip to content

Commit

Permalink
bugfix to display the current cirectory as ~rvm_rvmrc_cwd and reloa…
Browse files Browse the repository at this point in the history
…d the .rvmrc file for solve bug when use zsh + rvm with iTerm2
  • Loading branch information
tinogomes committed Mar 20, 2013
1 parent 76f5989 commit 23a398e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/aliases.zsh
Expand Up @@ -32,3 +32,10 @@ alias galias='alias | grep'
#alias rm="rm -i"

alias psg='show_processes'

# If you are using oh-my-zsh and you see something like this error:
# pwd:4: too many arguments
# This is caused by an alias and due to the sh style sourcing of a
# script using the '.' operator instead of 'source'.
# So, uncomment below line.
# alias .='pwd'
15 changes: 15 additions & 0 deletions lib/rvm.zsh
Expand Up @@ -6,3 +6,18 @@ function rvm_prompt_info() {
[[ "${rvm_prompt}x" == "x" ]] && return
echo "${ZSH_THEME_RVM_PROMPT_PREFIX:=(}${rvm_prompt}${ZSH_THEME_RVM_PROMPT_SUFFIX:=)}"
}

# Bugfix: prompt displays the current directory as "~rvm_rvmrc_cwd"
# http://beginrescueend.com/integration/zsh/
if [[ -s $HOME/.rvm/scripts/rvm ]]; then
unsetopt auto_name_dirs

source $HOME/.rvm/scripts/rvm
fi

# If you are using oh-my-zsh and you see something like this error:
# pwd:4: too many arguments
# This is caused by an alias and due to the sh style sourcing of a
# script using the '.' operator instead of 'source'.
# So, go to .oh-my-zsh/lib/aliases.zsh file and uncomment the alias line:
# to "."

0 comments on commit 23a398e

Please sign in to comment.