aboutsummaryrefslogtreecommitdiff
path: root/shells/tcshrc/files/patch-src__tcshrc.complete
blob: 9a53f53d60af4b39aa24d260ff0daf74ebaa85ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- src/tcshrc.complete.orig	2009-01-25 02:52:00.000000000 +0900
+++ src/tcshrc.complete	2009-02-05 02:08:57.000000000 +0900
@@ -715,17 +715,11 @@
     endif
     unset _maildir
 
-    if (! $?MANPATH) then
-	if (-r /usr/share/man) then
-	    if (-r /usr/local/man) then
-	       setenv MANPATH /usr/share/man:/usr/local/man:
-            else
-               setenv MANPATH /usr/share/man:
-	    endif
-	else
-	    setenv MANPATH /usr/man:
-	endif
-    endif
+# changed from original file to allow to use all manpathes found
+# by the manpath utility, not only one path
+
+unsetenv MANPATH
+setenv MANPATH `manpath`
 
 	if ($?traditional_complete) then
     # use of $MANPATH from Dan Nicolaescu <dann@ics.uci.edu>