Hacker News new | ask | show | jobs
by bpx51 631 days ago
Another tool that I can't live without, which requires no configuration at all is fzf, you can easily and (fuzz)yly find files in your system, move into directories, search in your command history, search active processes and kill them and a lot more. Give it a try
1 comments

fzf (https://github.com/junegunn/fzf) is really great. Very useful for providing a quick and easy user interface. For example, I use it to fuzzy find inside git branches to have an "improved checkout". I do that since at work branches are usually named "<project>-<issue number>", it's faster to search for the issue number.
I do this too!

    function zg --argument branch
        if test "$branch" = -
            git switch -
        else
            git checkout (git branch --list | fzf --query $branch --select-1 --exit-0 | string trim)
        end
    end