Use redefined cd when switching between projects, to run rbenv, rvmrc, etc.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user