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:
parent
6c43582e35
commit
c80eec632c
1 changed files with 9 additions and 0 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue