X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/35f596e5d1a4eac51333e01c385922321c3725a9..6bc0e759d562e9e19c75a772cf42d5ba20595921:/base/.zprofile diff --git a/base/.zprofile b/base/.zprofile index 0d8a1a7..f611b98 100644 --- a/base/.zprofile +++ b/base/.zprofile @@ -44,13 +44,8 @@ function _sev_zcleanup { } } # reset GNUPGHOME if we removed our own dir - if [[ $GNUPGHOME =~ '/.ssh_forward/\d+/*$' && ! -e $GNUPGHOME ]] { - x=$GNUPGHOME - [[ -o GLOB_ASSIGN ]]; y=$? - setopt GLOB_ASSIGN - GNUPGHOME=$GNUPGHOME/../..(:a) - (( y != 0 )) && unsetopt GLOB_ASSIGN - } + if [[ $GNUPGHOME =~ '/.ssh_forward/\d+/*$' && ! -e $GNUPGHOME ]] + GNUPGHOME=${GNUPGHOME%$MATCH} } ## tmp