From 5a2fb9571a95c029d341292bf795d19016430795 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Tue, 13 Aug 2024 18:25:05 -0700 Subject: [PATCH] Fix manpath. --- nonnixshellrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nonnixshellrc b/nonnixshellrc index 57f5998..35fce58 100644 --- a/nonnixshellrc +++ b/nonnixshellrc @@ -21,7 +21,11 @@ add_to PATH ~/.cabal/bin add_myprefix_to LD_LIBRARY_PATH lib -add_myprefix_to MANPATH share/man +if [ -z "$MANPATH" ]; then + export MANPATH="$MYPREFIX/share/man:" +else + add_myprefix_to MANPATH share/man +fi add_myprefix_to PKG_CONFIG_PATH lib/pkgconfig