return 2
fi
-export GIT_DIR=$FGIT_BASE/${1}.git
+export GIT_DIR="$FGIT_BASE/${1}.git"
+_WORKTREE="$(git config --get core.worktree)"
+export GIT_WORK_TREE="$(readlink -f $GIT_DIR/$_WORKTREE)"
+unset _WORKTREE
+
git status
PS1="%S{VCSH:$1}%s$PS1" $SHELL -i