aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zsh/profile-leeloo12
1 files changed, 7 insertions, 5 deletions
diff --git a/zsh/profile-leeloo b/zsh/profile-leeloo
index aa2f947..96d23b3 100644
--- a/zsh/profile-leeloo
+++ b/zsh/profile-leeloo
@@ -1,11 +1,12 @@
-export LD_PRELOAD="$HOME"/.local/lib/libwcwidth.so
+if (( UID )); then
+ export LD_PRELOAD="$HOME"/.local/lib/libwcwidth.so
-export PERL5LIB="$HOME"/misc/grawity/code/lib/perl5"${PERL5LIB+:}$PERL5LIB";
-source <(perl -Mlocal::lib="$HOME"/.local)
+ export PERL5LIB="$HOME"/misc/grawity/code/lib/perl5"${PERL5LIB+:}$PERL5LIB";
+ source <(perl -Mlocal::lib="$HOME"/.local)
-export GPG_AGENT_INFO=/run/user/"$UID"/keyring/gpg:0:1
+ export GPG_AGENT_INFO=/run/user/"$UID"/keyring/gpg:0:1
-function {
+ 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
@@ -18,4 +19,5 @@ function {
source "$HOME"/misc/grawity/code/kerberos/kc.sh
+fi
# vim: ft=zsh