Disable tab completions for bash since they rely on the user having bash completions installed, which not everyone does

This commit is contained in:
David Dworken 2023-12-20 19:51:25 -08:00
parent 93c93bf115
commit 04182011ae
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View File

@ -2373,6 +2373,12 @@ 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

@ -51,5 +51,3 @@ __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
source <(hishtory completion bash)