fzf
- Speed
- Highly customizable
Use homebrew to install fzf
:
If you want to use shell extensions:
/usr/local/opt/fzf/install
- Key bindings (
CTRL-T
,CTRL-R
, and ) (available for bash, zsh and fish) - Fuzzy auto-completion (available for bash and zsh)
File search
or
subl **
Host name search
Chrome history from CLI
Open up shell config (most likely ~/.zshrc
or command zshconfig
) and add following function:
# ch - browse chrome history
ch() {
local cols sep
sep='{::}'
cp -f ~/Library/Application\ Support/Google/Chrome/Profile\ 1/History /tmp/h
sqlite3 -separator $sep /tmp/h \
"select substr(title, 1, $cols), url
from urls order by last_visit_time desc" |
awk -F $sep '{printf "%-'$cols's \x1b[36m%s\x1b[m\n", $1, $2}' |
}