fix: do not setenv PAGER in shell layer (#15369)

This commit is contained in:
Rodrigo Kassick 2022-02-22 13:37:58 -03:00 committed by GitHub
parent e9adfe9122
commit 8587ab6df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -124,7 +124,10 @@
;; quick commands
(defalias 'eshell/e 'find-file-other-window)
(defalias 'eshell/d 'dired)
(setenv "PAGER" "cat")
(require 'esh-var)
(add-to-list 'eshell-variable-aliases-list
`("PAGER" ,(lambda (_indices) "cat") t))
;; support `em-smart'
(when shell-enable-smart-eshell