mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-28 19:23:53 +01:00
Disable tab completions for bash since they rely on the user having bash completions installed, which not everyone does
This commit is contained in:
parent
93c93bf115
commit
04182011ae
@ -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, "")
|
||||||
|
@ -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)
|
|
Loading…
Reference in New Issue
Block a user