Set Vim as default editor
This commit is contained in:
parent
d976d5d421
commit
c4d619a5a7
|
@ -23,3 +23,11 @@ def test_vim_config(host):
|
||||||
assert f.user == 'root'
|
assert f.user == 'root'
|
||||||
assert f.group == 'root'
|
assert f.group == 'root'
|
||||||
assert f.mode == 0o644
|
assert f.mode == 0o644
|
||||||
|
|
||||||
|
|
||||||
|
def test_default_editor(host):
|
||||||
|
f = host.file('/usr/bin/editor')
|
||||||
|
|
||||||
|
assert f.exists
|
||||||
|
assert f.is_symlink
|
||||||
|
assert f.linked_to == '/usr/bin/vim.basic'
|
||||||
|
|
|
@ -11,3 +11,8 @@
|
||||||
mode: 'u=rw,g=r,o=r'
|
mode: 'u=rw,g=r,o=r'
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
|
- name: Set Vim as default editor
|
||||||
|
alternatives:
|
||||||
|
name: editor
|
||||||
|
path: /usr/bin/vim.basic
|
||||||
|
|
Loading…
Reference in New Issue