summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorJonathan Zacsh <j@zac.sh>2022-07-15 01:53:23 -0500
committerGitHub <noreply@github.com>2022-07-15 15:53:23 +0900
commitc79c306adb40b50756481e1667fcf523de07a7b3 (patch)
treea4d94479fc4bfd50569d8a2fbda1687595573b78 /shell
parent51fdaad002a5ad827bd5ebfac43386592005d02c (diff)
[bash] Fix `fzf-tmux` to have `fzf`'s completion (#2871)
Diffstat (limited to 'shell')
-rw-r--r--shell/completion.bash4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/completion.bash b/shell/completion.bash
index 21aa4505..681c89fb 100644
--- a/shell/completion.bash
+++ b/shell/completion.bash
@@ -304,6 +304,10 @@ _fzf_alias_completion() {
# fzf options
complete -o default -F _fzf_opts_completion fzf
+# fzf-tmux is a thin fzf wrapper that has only a few more options than fzf
+# itself. As a quick improvement we take fzf's completion. Adding the few extra
+# fzf-tmux specific options (like `-w WIDTH`) are left as a future patch.
+complete -o default -F _fzf_opts_completion fzf-tmux
d_cmds="${FZF_COMPLETION_DIR_COMMANDS:-cd pushd rmdir}"
a_cmds="