Update 2 files
- /home/private_dot_config/tabby/plugins/run_onchange_after_install-tabby-plugins.tmpl - /home/.chezmoitemplates/universal/common-dependencies
This commit is contained in:
parent
97530412b7
commit
2c83daa4d0
2 changed files with 19 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
|
# bison required for ASDF PHP installation
|
||||||
{{- $packages := list
|
{{- $packages := list
|
||||||
"age"
|
"age"
|
||||||
"bash"
|
"bash"
|
||||||
|
"bison"
|
||||||
"coreutils"
|
"coreutils"
|
||||||
"curl"
|
"curl"
|
||||||
"expect"
|
"expect"
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/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-lock.json"'`'
|
||||||
|
cd "${XDG_CONFIG_HOME:-$HOME/.config}/tabby/plugins/package-lock.json"
|
||||||
|
npm install
|
||||||
|
logg success 'Finished installing Tabby plugins'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
logg info 'Skipping Tabby plugin installation because is not present'
|
||||||
|
fi
|
Loading…
Reference in a new issue