Hacker News new | ask | show | jobs
by martinosis 1190 days ago
I navigate across my favorites directories at light speed, using this simple alias which uses fzf.

alias f='files=$(cat ~/.fzfdirs | fzf) && cd "${files}"'

I type f and it fuzzy find the directory that I have added to the ~/.fzfdirs file and cd into it.

If I want to add a dir, I append the directory into the file or `pwd >> ~/.fzfdirs` inside the wanted directory.

I find it simple and efficient. I gives me an amazing boost of productivity for moving across directories.

With 3-4 key stokes I get inside any common directory on my box.

fzf is so amazing.