- # Status
- gitstatus=`git_get_status`
-
- # Got here, we're in git
- psvar[3]=${action}
- psvar[4]=${branch#refs/heads/}
- psvar[5]=${base_dir}
- psvar[6]=${sub_dir}
- psvar[7]=${gitstatus}
-
- # Save for next time
- export __ZSH_GIT_BASEDIR="${base_dir}"
- export __ZSH_GIT_SUBDIR="${sub_dir}"
- export __ZSH_GIT_BRANCH="${branch#refs/heads/}"
- export __ZSH_GIT_ACTION="${action}"
- export __ZSH_GIT_STATUS="${gitstatus}"
-
- export __ZSH_GIT_VARS_INVALID=0
- export __ZSH_GIT_STATUS_INVALID=0
+
+ __ZSH_GIT_BASEDIR="${base_dir}"
+ __ZSH_GIT_SUBDIR="${sub_dir}"
+ __ZSH_GIT_BRANCH="${branch#refs/heads/}"
+ __ZSH_GIT_ACTION="${action}"
+ __ZSH_GIT_STATUS=`git_get_status`
+
+ __ZSH_GIT_VARS_INVALID=0
+ __ZSH_GIT_STATUS_INVALID=0