fix(core): fix bat install

When installing bat from the Ubuntu repo the executable name is `catbat`. After
updating to 20.04 the executable `bat` is not there. This links catbat -> bat so
bat works as expected
This commit is contained in:
Ade Attwood 2020-12-28 20:51:00 +00:00
parent 6c43582e35
commit c80eec632c

View file

@ -14,6 +14,7 @@ class core::packages {
'offlineimap', 'offlineimap',
'silversearcher-ag', 'silversearcher-ag',
'tmux', 'tmux',
'bat',
'urlscan', 'urlscan',
'vim', 'vim',
'zsh', 'zsh',
@ -31,6 +32,14 @@ class core::packages {
ensure => absent ensure => absent
} }
exec { 'Link catbat to bat':
command => 'ln -s /usr/bin/batcat /usr/bin/bat',
onlyif => 'test -e /usr/bin/batcat',
creates => '/usr/bin/bat',
path => '/bin:/usr/bin',
provider => 'shell',
}
# core::packages::npm { [ # core::packages::npm { [
# 'grunt', # 'grunt',
# 'intelephense', # 'intelephense',