Use counsel for showing shell history

This commit is contained in:
Daniel - 2019-12-20 11:26:19 +01:00
parent 4621ed98f0
commit 4c656aa8a1
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 4 additions and 1 deletions

View File

@ -2013,7 +2013,8 @@ With given ARG, display files in `db/important-document-path."
counsel-unicode-char
counsel-describe-variable
counsel-describe-function
counsel-recentf))
counsel-recentf
counsel-shell-history))
(use-package swiper
:ensure t
@ -2246,6 +2247,8 @@ With given ARG, display files in `db/important-document-path."
(use-package shell
:commands (shell)
:bind (:map shell-mode-map
("C-r" . counsel-shell-history))
:config (progn
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
(add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)