5 ms·
My biggest tip is to use the '**' shortcut from bash/zsh. My most frequent use case is for running tests, I can type: $ be rspec spec/**{tab} Fzf will open
by petepete 5y ago
My biggest tip is to use the '**' shortcut from bash/zsh. My most frequent use case is for running tests, I can type:
$ be rspec spec/**{tab}
Fzf will open inline, select the file(s) you want and run them (like this https://asciinema.org/a/mYTmT908gvVxZTMAsfPxltULx https://asciinema.org/a/mYTmT908gvVxZTMAsfPxltULx)
To get this to work I had to add this line to my .zshrc
source /usr/share/zsh/site-functions/fzf
- epr 5y agoIf you don't have the globstar optional behavior enabled in bash this won't work. From the manual: If set, the pattern ‘*’ used in a filename expansion context will match all files and zero or more directories and subdirectories. If the pattern is followed by a ‘/’, only directories and subdirectories match. To enable: $ shopt -s globstar To disable: $ shopt -u globstar