diff options
-rw-r--r-- | zsh/profile-leeloo | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/zsh/profile-leeloo b/zsh/profile-leeloo index f1e8ae5..30d4024 100644 --- a/zsh/profile-leeloo +++ b/zsh/profile-leeloo @@ -5,17 +5,19 @@ if (( UID )); then source <(perl -Mlocal::lib="$HOME"/.local) function { - local envfile="$XDG_RUNTIME_DIR"/ssh-agent.env - local pid=$(awk -F'[=;]' 'FNR == 2 {print $2}' "$envfile" 2>/dev/null) - if [[ -n "$pid" ]] && kill -0 "$pid" &>/dev/null; then - source "$envfile" >/dev/null - else - ssh-agent > "$envfile" - source "$envfile" >/dev/null - fi -} - -source "$HOME"/misc/grawity/code/kerberos/kc.sh + local envfile="$XDG_RUNTIME_DIR"/ssh-agent.env + local pid=$(awk -F'[=;]' 'FNR == 2 {print $2}' "$envfile" 2>/dev/null) + if [[ -n "$pid" ]] && kill -0 "$pid" &>/dev/null; then + source "$envfile" >/dev/null + else + ssh-agent > "$envfile" + source "$envfile" >/dev/null + fi + } + source "$HOME"/misc/grawity/code/kerberos/kc.sh fi + +export _Z_DATA="$XDG_CONFIG_HOME"/z +export _Z_OWNER="$USER" # vim: ft=zsh |