From fcc368e1058ebf198452e6c24203dd4c623b8faf Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 8 Dec 2012 19:16:38 -0600 Subject: [PATCH] FreeBSD moved bash-completion to /usr/local/share; follow it --- {bash_completion.d => bash-completions}/service | 0 {bash_completion.d => bash-completions}/zfs | 0 bash-config/bashrc.d/10-bash-completion | 2 +- bash-config/inputrc | 15 +++++++++++++++ 4 files changed, 16 insertions(+), 1 deletion(-) rename {bash_completion.d => bash-completions}/service (100%) rename {bash_completion.d => bash-completions}/zfs (100%) diff --git a/bash_completion.d/service b/bash-completions/service similarity index 100% rename from bash_completion.d/service rename to bash-completions/service diff --git a/bash_completion.d/zfs b/bash-completions/zfs similarity index 100% rename from bash_completion.d/zfs rename to bash-completions/zfs diff --git a/bash-config/bashrc.d/10-bash-completion b/bash-config/bashrc.d/10-bash-completion index ceee59e..46631c5 100644 --- a/bash-config/bashrc.d/10-bash-completion +++ b/bash-config/bashrc.d/10-bash-completion @@ -2,6 +2,6 @@ _i || return -_bash_comp="$(realpath "${_base}/..")/bash_completion" +_bash_comp="/usr/local/share/bash-completion/bash_completion.sh" [ -f "${_bash_comp}" ] && source "${_bash_comp}" diff --git a/bash-config/inputrc b/bash-config/inputrc index 6f7925e..8e012a9 100644 --- a/bash-config/inputrc +++ b/bash-config/inputrc @@ -1,3 +1,18 @@ +# Press TAB once (instead of twice) to auto-complete +set show-all-if-ambiguous on + +# No bell. No ^G in output +set bell-style none + +# Don't query user about viewing the number of possible completions +set completion-query-items -1 + +# Display completions sorted horizontally, not vertically +set print-completions-horizontally on + +# Don't use pager when showing completions +set page-completions off + set meta-flag on set input-meta on set convert-meta off -- 2.42.0