mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 12:09:08 +00:00 
			
		
		
		
	[Fix #383] Do not set $MANPATH
man dynamically searches for man pages based on $PATH.
This commit is contained in:
		@@ -34,7 +34,6 @@ fi
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
typeset -gU cdpath fpath mailpath path
 | 
			
		||||
typeset -gxU MANPATH
 | 
			
		||||
typeset -gxUT INFOPATH infopath
 | 
			
		||||
 | 
			
		||||
# Set the the list of directories that cd searches.
 | 
			
		||||
@@ -49,18 +48,6 @@ infopath=(
 | 
			
		||||
  $infopath
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
# Set the list of directories that man searches for manuals.
 | 
			
		||||
manpath=(
 | 
			
		||||
  /usr/local/share/man
 | 
			
		||||
  /usr/share/man
 | 
			
		||||
  $manpath
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
for path_file in /etc/manpaths.d/*(.N); do
 | 
			
		||||
  manpath+=($(<$path_file))
 | 
			
		||||
done
 | 
			
		||||
unset path_file
 | 
			
		||||
 | 
			
		||||
# Set the list of directories that Zsh searches for programs.
 | 
			
		||||
path=(
 | 
			
		||||
  /usr/local/{bin,sbin}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user