aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-20 00:32:58 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-20 00:32:58 +0100
commit0b551de1b458f66b06423911f8eaddb20852e0cc (patch)
tree959955bb0cb7ec7a9f4af62fe151382c71ca44cf /zsh
parent375d542827e8eb872f2efd74a42a1931b7202d55 (diff)
downloaddotfiles-0b551de1b458f66b06423911f8eaddb20852e0cc.tar.xz
profile-leeloo: reindent function properly, add z configs
Diffstat (limited to 'zsh')
-rw-r--r--zsh/profile-leeloo24
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