aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-05-16 01:49:24 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-05-16 01:49:24 +0200
commit8e0e727c0ac74ed042197c7a3ed996a0a6dfd782 (patch)
tree96d1e69fc64bb5e67b75c5573a647949305ab2f2 /zsh
parentb21ac4212688fe34f54819f81f1d6b5549a1baba (diff)
downloaddotfiles-8e0e727c0ac74ed042197c7a3ed996a0a6dfd782.tar.xz
zsh: leeloo: Only set LD_PRELOAD if wcwidth is executable
Diffstat (limited to 'zsh')
-rw-r--r--zsh/profile-leeloo4
1 files changed, 3 insertions, 1 deletions
diff --git a/zsh/profile-leeloo b/zsh/profile-leeloo
index b37ac81..f5c7658 100644
--- a/zsh/profile-leeloo
+++ b/zsh/profile-leeloo
@@ -1,5 +1,7 @@
if (( UID )); then
- export LD_PRELOAD="$HOME"/.local/lib/libwcwidth.so
+ if [[ -x "$HOME"/.local/lib/libwcwidth.so ]]; then
+ export LD_PRELOAD="$HOME"/.local/lib/libwcwidth.so
+ fi
export PERL5LIB="$HOME"/misc/grawity/code/lib/perl5"${PERL5LIB+:}$PERL5LIB";
source <(perl -Mlocal::lib="$HOME"/.local)