News for hackers. Stuff that matters.
Re:Ask HN: Small scripts, hacks and automations you're proud... by martinosis on Saturday March 18, 2023 @12:06AM (#35205966)
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.

There are no comments on this comment yet.