laktak / extrakto

extrakto for tmux - quickly select, copy/insert/complete text without a mouse
MIT License
878 stars 45 forks source link

tmux-extrakto.sh: line 35: fzf: command not found #14

Closed oblitum closed 7 years ago

oblitum commented 7 years ago

I get command not found for fzf even after installing fzf as documented. I don't know the reason this happens for me though, I've created a simple sample.sh script with:

#!/bin/bash

fzf --help

When running ./sample.sh, I get the fzf help just fine.

oblitum commented 7 years ago

Hard coding $HOME/.fzf/bin/fzf on line 35 circumvents the issue but I wish it to work without a patch.

laktak commented 7 years ago

It sounds like fzf added to your PATH but tmux is still running with the old one. If that's the case the easiest solution is probably to just restart tmux.

oblitum commented 7 years ago

I did restart it, forgot to mention that.

laktak commented 7 years ago

I've added an option to set the path to fzf, you can change it with:

set -g @extrakto_fzf_tool "fzf"
oblitum commented 7 years ago

@laktak great, this works for me 😉