Open neerajbadlani opened 3 years ago
I'm not sure what you mean here what "bash completion options" were you expecting?
Sorry corrected . I meant tab completion options are not coming up after pressing tab .
can you post here what completions you get with fzf and another without fzf
@neerajbadlani it worked for me out of the box (fresh installation). Are you sure you have git completions installed?
I have similar issue. If I use the command vim ** then all files/dirs recursively are searched while typing. If using the command vim+tab only the files/dirs in the current directory are shown.
Are you on a Mac, and if so, have you installed gawk?
@duganchen I am on linux(ubuntu 20). It is the same problem for git+tab. Only the files in the current directory are shown. GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.2.0)
Similar problem here, screenshots to illustrate; the first is fzf-tab-completion, second plain fzf:
Bash version: GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)
Two years later and it still works for me on fresh install, for the record, necessary config:
# .bashrc or .bash_aliases
source ~/.fzf/fzf-bash-completion.sh
bind -x '"\t": fzf_bash_completion' # enable completion under tab
Make sure fzf script is placed in given directory:
$ ls ~/.fzf/
fzf-bash-completion.sh
Make sure you have completions installed:
$ ls /etc/bash_completion.d/ | grep git
git-prompt
And then TAB works as follows:
[~] source ~/fzf-tab-completion/bash/fzf-bash-completion.sh -bash: /Users/neerajbadlani/fzf-tab-completion/bash/fzf-bash-completion.sh: line 607: unexpected EOF while looking for matching `"' -bash: /Users/neerajbadlani/fzf-tab-completion/bash/fzf-bash-completion.sh: line 612: syntax error: unexpected end of file
I followed bash steps as mentioned in the wiki : After that, when i do
I expected autocompletion to pop up . However fzf does come up, but only with files in the current directory rather than tab completion options .