Use counsel for showing shell history
This commit is contained in:
parent
4621ed98f0
commit
4c656aa8a1
5
init.el
5
init.el
|
@ -2013,7 +2013,8 @@ With given ARG, display files in `db/important-document-path’."
|
||||||
counsel-unicode-char
|
counsel-unicode-char
|
||||||
counsel-describe-variable
|
counsel-describe-variable
|
||||||
counsel-describe-function
|
counsel-describe-function
|
||||||
counsel-recentf))
|
counsel-recentf
|
||||||
|
counsel-shell-history))
|
||||||
|
|
||||||
(use-package swiper
|
(use-package swiper
|
||||||
:ensure t
|
:ensure t
|
||||||
|
@ -2246,6 +2247,8 @@ With given ARG, display files in `db/important-document-path’."
|
||||||
|
|
||||||
(use-package shell
|
(use-package shell
|
||||||
:commands (shell)
|
:commands (shell)
|
||||||
|
:bind (:map shell-mode-map
|
||||||
|
("C-r" . counsel-shell-history))
|
||||||
:config (progn
|
:config (progn
|
||||||
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
|
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
|
||||||
(add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)
|
(add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)
|
||||||
|
|
Loading…
Reference in New Issue