diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index 58b9591..b73192c 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -46,6 +46,11 @@ :init (setq epg-pinentry-mode `loopback) (pinentry-start)) +;; Bind SPC s c to clear evil search +(map! :leader + :desc "Clear recent search result" + "s c" #'evil-ex-nohighlight) + ;; Whenever you reconfigure a package, make sure to wrap your config in an ;; `after!' block, otherwise Doom's defaults may override your settings. E.g. ;; diff --git a/zsh/.zshrc b/zsh/.zshrc index 3595485..40f3002 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -41,6 +41,7 @@ setopt inc_append_history # add commands to HISTFILE in order of execution setopt share_history # share command history data setopt hist_find_no_dups # don't display duplicates in reverse search setopt hist_reduce_blanks # remove superfluous blanks +setopt HIST_IGNORE_SPACE # put a space at the front and you won't record history setopt interactivecomments # Comments in the interactive shell setopt auto_continue # Send CONT signal automatically when disowning jobs