diff --git a/client/client_test.go b/client/client_test.go index 111624a..9fe5a2f 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -2043,11 +2043,8 @@ func testControlR(t *testing.T, tester shellTester, shellName string, onlineStat } // Re-enable control-r - out, err := tester.RunInteractiveShellRelaxed(t, `hishtory config-set enable-control-r true`) + _, err := tester.RunInteractiveShellRelaxed(t, `hishtory config-set enable-control-r true`) testutils.Check(t, err) - if out != "" { - t.Fatalf("config-set out is unexpected: %#v", out) - } // And check that the control-r bindings work again out = captureTerminalOutputWithShellName(t, tester, "fish", []string{"C-R", "-pipefail SPACE -exit_code:0"}) diff --git a/client/cmd/configSet.go b/client/cmd/configSet.go index fd9c39f..8a5d81e 100644 --- a/client/cmd/configSet.go +++ b/client/cmd/configSet.go @@ -1,6 +1,7 @@ package cmd import ( + "fmt" "log" "github.com/ddworken/hishtory/client/hctx" @@ -31,6 +32,7 @@ var setEnableControlRCmd = &cobra.Command{ config := hctx.GetConf(ctx) config.ControlRSearchEnabled = (val == "true") lib.CheckFatalError(hctx.SetConfig(config)) + fmt.Println("Updated the control-r integration, please restart your shell for this to take effect...") }, }