aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-15 18:49:01 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-15 18:49:01 +0200
commit0da0d0b643425bc9227c6364a427014b1f77e553 (patch)
treeed4cf13f16659ab66e0319dae5bbb708f5f6678e /zsh
parent9d7d3a494891df8aa735e8b2c54ff9c09ddd1802 (diff)
downloaddotfiles-0da0d0b643425bc9227c6364a427014b1f77e553.tar.xz
leeloo-profile stuff should only be sourced as my user..
Diffstat (limited to 'zsh')
-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