Fix follow symlink option for find…
This commit is contained in:
		
							parent
							
								
									0efcde9399
								
							
						
					
					
						commit
						5b82144876
					
				
							
								
								
									
										8
									
								
								zshrc
								
								
								
								
							
							
						
						
									
										8
									
								
								zshrc
								
								
								
								
							|  | @ -2091,10 +2091,10 @@ function ff() { | |||
| 	## Manage argument {{{ | ||||
| 	if [ "${#}" -eq "0" ]; then | ||||
| 		## Default command without args | ||||
| 		dir=$(find . -xtype d --follow -not -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi) && | ||||
| 		dir=$(find -L . -xtype d -not -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi) && | ||||
| 	else | ||||
| 		## If at least one argument was given, add it to fzf query | ||||
| 		dir=$(find . -xtype d --follow -not -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi --query "${*} ") && | ||||
| 		dir=$(find -L . -xtype d -not -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi --query "${*} ") && | ||||
| 	fi | ||||
| 	## }}} | ||||
| 
 | ||||
|  | @ -2113,10 +2113,10 @@ function ffh() { | |||
| 	## Manage argument {{{ | ||||
| 	if [ "${#}" -eq "0" ]; then | ||||
| 		## Default command without args | ||||
| 		dir=$(find . -xtype d --follow -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi) && | ||||
| 		dir=$(find -L . -xtype d -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi) && | ||||
| 	else | ||||
| 		## If at least one argument was given, add it to fzf query | ||||
| 		dir=$(find . -xtype d --follow -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi --query "${*} ") && | ||||
| 		dir=$(find -L . -xtype d -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi --query "${*} ") && | ||||
| 	fi | ||||
| 	## }}} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue