[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tips/advice for installing latest version of fzf?



On 2021-08-31 10:48 AM, Greg Wooledge wrote:
On Tue, Aug 31, 2021 at 10:45:50AM -0400, Steve Dondley wrote:
Now I'm just wondering if it would be better to keep the old fzf around and
put the new fzf into a directory that $PATH loads before /usr/bin. I'm
thinking this might be the proper way of doing this instead of my quick
hack.

Yes, this is what I'd recommend.  Otherwise, your /usr/bin/fzf is going
to be overwritten next time you upgrade the fzf package.

OK, yes, I see now that was Roberto's original advice and put it in /usr/local/bin

OK, so I dropped the new fzf into /usr/local/bin. I confirmed it is the correct version with:

admin@ip-172-30-0-226 /usr/local/bin
$ ./fzf --version
0.27.2 (e086f0b)

"echo $PATH" reports:

/usr/local/bin:/usr/bin:/bin:/usr/games

So it looks like any binary in /usr/local/bin should load first.

However, "which fzf" reports the /usr/bin as the location:

/usr/bin/fzf

I'm using zsh.

What am I missing?


Reply to: