git: Use editor abstraction

This commit is contained in:
doublez13 2024-05-16 07:38:53 -06:00 committed by Alex
parent 192d227c50
commit a291ce373a

View file

@ -165,30 +165,12 @@ profile git @{exec_path} {
profile editor {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{bin}/sensible-editor mr,
@{bin}/vim mrix,
@{bin}/vim.* mrix,
@{sh_path} rix,
@{bin}/which{,.debianutils} rix,
/usr/share/vim/{,**} r,
/usr/share/terminfo/** r,
/etc/vimrc r,
/etc/vim/{,**} r,
include <abstractions/app/editor>
owner @{user_projects_dirs}/**/ r,
owner @{user_projects_dirs}/**/.git/@{int} rw,
owner @{user_projects_dirs}/**/.git/*MSG rw,
owner @{HOME}/.selected_editor r,
owner @{HOME}/.viminfo{,.tmp} rw,
owner @{user_cache_dirs}/vim/{,**} rw,
owner @{user_config_dirs}/vim/{,**} r,
# The git repository files
owner @{user_build_dirs}/ r,
owner @{user_build_dirs}/** rw,