fixed sourcing zsh completions when they were not included in distro packaging.
This commit is contained in:
		
							parent
							
								
									d2a011e151
								
							
						
					
					
						commit
						134ab4d36b
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -192,11 +192,11 @@ PROMPT='%F{cyan}[%n@%m]%f%F{red}├────┤%f${vcs_info_msg_0_}
 | 
				
			||||||
	alias grep="grep $GREP_OPTIONS"
 | 
						alias grep="grep $GREP_OPTIONS"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#fzf stuff
 | 
					#fzf stuff
 | 
				
			||||||
#zsh key bindings (different distros put these in different places.)
 | 
						#zsh key bindings (different distros put these in different places.)
 | 
				
			||||||
	source $(find /usr/share -path '*fzf/*key-bindings.zsh')
 | 
						source $(find /usr/share -path '*fzf/*key-bindings.zsh')
 | 
				
			||||||
	#zsh completions, if it exists.
 | 
						#zsh completions, if it exists.
 | 
				
			||||||
	testPath = $(find /usr/share -path '*fzf/*completion.zsh')
 | 
						testPath=$(find /usr/share -path '*fzf/*completion.zsh')
 | 
				
			||||||
	if test $(echo $testPath | wc -c) -ne 0
 | 
						if test $(echo $testPath | wc -c) -eq 0
 | 
				
			||||||
	then
 | 
						then
 | 
				
			||||||
		source $testPath
 | 
							source $testPath
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue