X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=blobdiff_plain;f=S60_git;h=9eb816b48017acdf0dff2d600b32d10540cd1e3e;hp=433cea7c193a4bca01fd3964fe162849c685fb64;hb=2ec3cae4d8fe90c334e802279c995b1771d22818;hpb=e808d77ed363e89fbf07e57e8cfd8608b5bfa2ef diff --git a/S60_git b/S60_git index 433cea7..9eb816b 100644 --- a/S60_git +++ b/S60_git @@ -1,10 +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/'~'}