From 43d88d275db446bd9eca0a7cd89c54e3cf6ecd28 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 14 Apr 2017 12:09:28 -0400 Subject: config-path: Let `manpath` figure out $MANPATH runtime --- .local/bin/config-path | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '.local') diff --git a/.local/bin/config-path b/.local/bin/config-path index 74748f7..cbecc95 100755 --- a/.local/bin/config-path +++ b/.local/bin/config-path @@ -51,7 +51,6 @@ main() { IFS=: # Import existing values var_init PATH - var_init MANPATH var_init LD_LIBRARY_PATH var_init PKG_CONFIG_PATH var_init RUBYLIB @@ -60,7 +59,6 @@ main() { # Scan through prefixes for prefix in "${prefixes[@]}"; do var_add PATH "$prefix/bin" "$prefix/sbin" - var_add MANPATH "$prefix/share/man" var_add LD_LIBRARY_PATH "$prefix"/lib{,32,64} var_add PKG_CONFIG_PATH "$prefix"/lib{,32,64}/pkgconfig var_add RUBYLIB "$prefix"/lib{,32,64} @@ -69,7 +67,7 @@ main() { # Finally, print the values lines=() - for var in PATH MANPATH LD_LIBRARY_PATH PKG_CONFIG_PATH RUBYLIB PERL5LIB; do + for var in PATH LD_LIBRARY_PATH PKG_CONFIG_PATH RUBYLIB PERL5LIB; do lines+=("$(var_done "$var")") done shopt -s extglob -- cgit v1.2.3-2-g168b