From 8e0e727c0ac74ed042197c7a3ed996a0a6dfd782 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 16 May 2015 01:49:24 +0200 Subject: zsh: leeloo: Only set LD_PRELOAD if wcwidth is executable --- zsh/profile-leeloo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zsh') 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) -- cgit v1.2.3-70-g09d2