Enable bash completions

This commit is contained in:
David Dworken 2024-09-06 17:21:49 -07:00
parent 11fc92ee5f
commit 98e8ee81b9
No known key found for this signature in database
2 changed files with 2 additions and 6 deletions

View File

@ -2633,12 +2633,6 @@ func testPresaving(t *testing.T, tester shellTester, shellName string) {
} }
func testTabCompletion(t *testing.T, tester shellTester, shellName string) { func testTabCompletion(t *testing.T, tester shellTester, shellName string) {
if shellName == "bash" {
// TODO: Enable tab completions for bash by adding the below line to config.sh
// type _get_comp_words_by_ref &>/dev/null && source <(hishtory completion bash)
t.Skip()
}
// Setup // Setup
defer testutils.BackupAndRestore(t)() defer testutils.BackupAndRestore(t)()
installHishtory(t, tester, "") installHishtory(t, tester, "")

View File

@ -71,3 +71,5 @@ __hishtory_bind_control_r() {
} }
[ "$(hishtory config-get enable-control-r)" = true ] && __hishtory_bind_control_r [ "$(hishtory config-get enable-control-r)" = true ] && __hishtory_bind_control_r
type _get_comp_words_by_ref &>/dev/null && source <(hishtory completion bash)