X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=blobdiff_plain;f=S60_git;h=9eb816b48017acdf0dff2d600b32d10540cd1e3e;hp=a1ae51c25c1e28636763ac87d3856cf174ec2360;hb=2ec3cae4d8fe90c334e802279c995b1771d22818;hpb=24e698a0e46b50c12b190da467bf5d7fa982e823 diff --git a/S60_git b/S60_git index a1ae51c..9eb816b 100644 --- a/S60_git +++ b/S60_git @@ -1,11 +1,16 @@ #! /usr/bin/zsh +export __ZSH_GIT_BASEDIR="" +export __ZSH_GIT_BRANCH="" +export __ZSH_GIT_SUBDIR="" +export __ZSH_GIT_STATE="" +export __ZSH_GIT_VARS_INVALID=1 git_parse() { psvar=() - local git_dir ref base_dir sub_dir action branch + git_dir=$(git rev-parse --git-dir 2> /dev/null) || return base_dir=${$(readlink -f "$git_dir/..")/$HOME/'~'}