Set fzf options according to the version
This commit is contained in:
		
							parent
							
								
									5c6b4d46a9
								
							
						
					
					
						commit
						d895e2ab2a
					
				
							
								
								
									
										8
									
								
								zshrc
								
								
								
								
							
							
						
						
									
										8
									
								
								zshrc
								
								
								
								
							|  | @ -1806,7 +1806,13 @@ if [ -f ~/bin/fd ]; then | |||
| 	export FZF_DEFAULT_COMMAND='fd --type f' | ||||
| fi | ||||
| 
 | ||||
| export FZF_DEFAULT_OPTS="--cycle --multi --select-1 --bind change:first" | ||||
| autoload is-at-least | ||||
| if is-at-least 0.29.0 $(fzf --version); then | ||||
| 	export FZF_DEFAULT_OPTS="--cycle --multi --select-1 --bind change:first" | ||||
| else | ||||
| 	## change:first is unknown in FZF before 0.29.0 | ||||
| 	export FZF_DEFAULT_OPTS="--cycle --multi --select-1" | ||||
| fi | ||||
| 
 | ||||
| # Auto-completion | ||||
| # --------------- | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue