mirror of
https://github.com/ddworken/hishtory.git
synced 2024-12-26 00:39:02 +01:00
Enable bash completions
This commit is contained in:
parent
11fc92ee5f
commit
98e8ee81b9
@ -2633,12 +2633,6 @@ func testPresaving(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
|
||||
defer testutils.BackupAndRestore(t)()
|
||||
installHishtory(t, tester, "")
|
||||
|
@ -71,3 +71,5 @@ __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)
|
Loading…
Reference in New Issue
Block a user