mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-03 16:55:05 +01:00
feat: add nvimpager as possible pager.
Also ensure the child-pager uses pager_path. fix #568
This commit is contained in:
parent
1efb50e67e
commit
165a5f7b9a
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,6 @@ abi <abi/4.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = @{bin}/pager @{bin}/less @{bin}/more
|
|
||||||
profile child-pager flags=(attach_disconnected) {
|
profile child-pager flags=(attach_disconnected) {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
@ -24,10 +23,11 @@ profile child-pager flags=(attach_disconnected) {
|
||||||
signal (receive) set=(stop, cont, term, kill),
|
signal (receive) set=(stop, cont, term, kill),
|
||||||
|
|
||||||
@{bin}/ r,
|
@{bin}/ r,
|
||||||
@{exec_path} mr,
|
@{pager_path} mr,
|
||||||
|
|
||||||
@{system_share_dirs}/terminfo/{,**} r,
|
@{system_share_dirs}/terminfo/{,**} r,
|
||||||
/usr/share/file/misc/** r,
|
/usr/share/file/misc/** r,
|
||||||
|
/usr/share/nvim/{,**} r,
|
||||||
|
|
||||||
@{HOME}/.lesshst r,
|
@{HOME}/.lesshst r,
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
@{editor_names} = sensible-editor vim{,.*} nvim nano
|
@{editor_names} = sensible-editor vim{,.*} nvim nano
|
||||||
|
|
||||||
# Pager
|
# Pager
|
||||||
@{pager_names} = sensible-pager pager less more
|
@{pager_names} = sensible-pager pager less more nvimpager
|
||||||
|
|
||||||
# Browsers
|
# Browsers
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue