mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
Merge 128e426f01 into 8efdbef778
This commit is contained in:
commit
c448b36dcd
2 changed files with 14 additions and 31 deletions
|
|
@ -11,6 +11,9 @@ if (( $+commands[$virtualenvwrapper] )); then
|
|||
WORKON_CWD=1
|
||||
# Check if this is a Git repo
|
||||
PROJECT_ROOT=`git rev-parse --show-toplevel 2> /dev/null`
|
||||
if (( $? != 0 )); then
|
||||
PROJECT_ROOT=`hg prompt '{root}' 2>/dev/null`
|
||||
fi
|
||||
if (( $? != 0 )); then
|
||||
PROJECT_ROOT="."
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue