Use redefined cd when switching between projects, to run rbenv, rvmrc, etc.

This commit is contained in:
Nathan Broadbent
2012-10-21 11:29:50 +13:00
parent adef82a838
commit 58db58efd3

View File

@@ -108,7 +108,7 @@ function git_index() {
if [[ "$base_path" == "~"* ]]; then if [[ "$base_path" == "~"* ]]; then
base_path=$(eval echo ${base_path%%/*})/${base_path#*/} base_path=$(eval echo ${base_path%%/*})/${base_path#*/}
fi fi
builtin cd "$base_path" cd "$base_path"
# Run git callback (either update or show changes), if we are in the root directory # Run git callback (either update or show changes), if we are in the root directory
if [ -z "${sub_path%/}" ]; then _git_index_status_if_dirty; fi if [ -z "${sub_path%/}" ]; then _git_index_status_if_dirty; fi
else else