diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-20 00:32:58 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-20 00:32:58 +0100 |
commit | 0b551de1b458f66b06423911f8eaddb20852e0cc (patch) | |
tree | 959955bb0cb7ec7a9f4af62fe151382c71ca44cf /zsh/profile-leeloo | |
parent | 375d542827e8eb872f2efd74a42a1931b7202d55 (diff) | |
download | dotfiles-0b551de1b458f66b06423911f8eaddb20852e0cc.tar.xz |
profile-leeloo: reindent function properly, add z configs
Diffstat (limited to 'zsh/profile-leeloo')
-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 |