vikrambombhi / dotfiles

0 stars 0 forks source link

FZF Install #2

Open vikrambombhi opened 5 years ago

vikrambombhi commented 5 years ago

Need to setup FZF properly. After installing FZF the following should be added to .bashrc

# Set FZF path                                                                                                                                                                                                     
[ -f ~/.fzf.bash ] && source ~/.fzf.bash                                                                                                                                                                           

# --files: List files that would be searched but do not search                                                                                                                                                     
# --no-ignore: Do not respect .gitignore, etc...                                                                                                                                                                   
# --hidden: Search hidden files and folders                                                                                                                                                                        
# --follow: Follow symlinks                                                                                                                                                                                        
# --glob: Additional conditions for search (in this case ignore everything in the .git/ folder)                                                                                                                    
export FZF_DEFAULT_COMMAND='ripgrep.rg --files --no-ignore --hidden --follow --glob "!.git/*"'

Also, need to install ripgrep ....

vikrambombhi commented 5 years ago

vim FZF post install adds [ -f ~/.fzf.bash ] && source ~/.fzf.bash to bashrc just need to add set FZF_DEFAULT_COMMAND