diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-05-16 01:49:24 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-05-16 01:49:24 +0200 |
commit | 8e0e727c0ac74ed042197c7a3ed996a0a6dfd782 (patch) | |
tree | 96d1e69fc64bb5e67b75c5573a647949305ab2f2 | |
parent | b21ac4212688fe34f54819f81f1d6b5549a1baba (diff) | |
download | dotfiles-8e0e727c0ac74ed042197c7a3ed996a0a6dfd782.tar.xz |
zsh: leeloo: Only set LD_PRELOAD if wcwidth is executable
-rw-r--r-- | zsh/profile-leeloo | 4 |
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) |