be1bb2b6d0
- /home/dot_config/tabby/plugins/run_onchange_after_install-tabby-plugins.tmpl - /home/dot_local/share/vagrant.d/Vagrantfile - /home/Vagrantfile - /home/.chezmoiscripts/universal/run_onchange_after_53-tabby.tmpl - /software.yml
20 lines
856 B
Cheetah
20 lines
856 B
Cheetah
{{- if ne .host.distro.family "windows" -}}
|
|
#!/usr/bin/env bash
|
|
|
|
{{ includeTemplate "universal/profile" }}
|
|
{{ includeTemplate "universal/logg" }}
|
|
|
|
if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/tabby/plugins/package-lock.json" ]; then
|
|
if [ -d "${XDG_CONFIG_HOME:-$HOME/.config}/tabby/plugins/node_modules" ]; then
|
|
logg info 'Skipping Tabby plugin installation because it looks like the plugins were already installed since `node_modules` is present in ~/.config/tabby/plugins'
|
|
else
|
|
logg info 'Installing Tabby plugins defined in `'"${XDG_CONFIG_HOME:-$HOME/.config}/tabby/plugins/package.json"'`'
|
|
cd "${XDG_CONFIG_HOME:-$HOME/.config}/tabby/plugins"
|
|
npm install
|
|
logg success 'Finished installing Tabby plugins'
|
|
fi
|
|
else
|
|
logg info 'Skipping Tabby plugin installation because is not present'
|
|
fi
|
|
|
|
{{ end -}}
|