This commit is contained in:
Brian Zalewski 2024-05-01 01:21:52 +00:00
parent 1bb6448302
commit 36cf2e0cce
6 changed files with 38 additions and 14 deletions

View file

@ -837,6 +837,14 @@ installDockerRclonePlugin() {
fi
}
installLocalBinPackageJson() {
if [ -f "$HOME/.local/bin/package.json" ]; then
logg info 'Installing NPM packages in ~/.local/bin/package.json'
cd "$HOME/.local/bin" && npm i --force
logg info 'Installed NPM packages in ~/.local/bin'
fi
}
# @description Installs a terminal theme that matches across various terminals by utilizing the `~/.local/bin/install-terminal-theme` script
installTerminalTheme() {
if command -v install-terminal-theme > /dev/null; then
@ -1012,6 +1020,7 @@ if [ -n "$DEBUG" ] || [ -n "$DEBUG_MODE" ]; then
gnomeExtensionSettings
grubSettings
installDockerRclonePlugin
installLocalBinPackageJson
installTerminalTheme
loadCronjobs
macOSSettings
@ -1039,6 +1048,7 @@ else
gnomeExtensionSettings &
grubSettings &
installDockerRclonePlugin &
installLocalBinPackageJson &
installTerminalTheme &
loadCronjobs &
macOSSettings &

View file

@ -0,0 +1,10 @@
{
"auths": {
"https://index.docker.io/v1/": {}
},
"plugins": {
"-x-cli-hints": {
"enabled": "true"
}
}
}

View file

@ -1,11 +0,0 @@
{
"auths": {
"https://index.docker.io/v1/": {}
},
"credsStore": "{{ if (eq .host.distro.id "darwin") }}osxkeychain{{ else }}{{ if (eq .host.distro.id "windows") }}wincred{{ else }}secretservice{{ end }}{{ end }}",
"plugins": {
"-x-cli-hints": {
"enabled": "true"
}
}
}

View file

@ -6,7 +6,6 @@ init-author-email={{ .user.email }}
init-author-name={{ .user.name }} <{{ .user.email }}> ({{ .user.domain }})
init-author-url=https://{{ .user.domain }}/
init-license=MIT
init-module={{ .chezmoi.homeDir }}/.config/npm/config/npm-init.js
init-version=0.0.1
loglevel=error
network-concurrency=32

View file

@ -0,0 +1,17 @@
{
"name": "install-doctor-bin",
"version": "1.0.0",
"description": "NPM packages that accompany scripts in ~/.local/bin",
"main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
"dependencies": {
"linux-os-info": "2.0.0"
}
}

View file

@ -23,7 +23,6 @@ Host *
IdentityFile ~/.ssh/ssh-5-nfc-red
IdentityFile ~/.ssh/ssh-5-nfc-yellow
IdentityFile ~/.ssh/id_rsa
Host wordpress.megabyte.space
Host gitlab.com
UpdateHostKeys no
IdentityFile ~/.ssh/id_rsa
@ -33,4 +32,4 @@ Host github.com
{{ if (lookPath "fig") -}}
Match all
Include ~/.fig/ssh
{{- end -}}
{{- end -}}