From 0b551de1b458f66b06423911f8eaddb20852e0cc Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 20 Jan 2015 00:32:58 +0100 Subject: profile-leeloo: reindent function properly, add z configs --- zsh/profile-leeloo | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'zsh/profile-leeloo') 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 -- cgit v1.2.3-70-g09d2